executor

package
v0.0.0-...-5f751f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalErrorMessage = &rpc.ResultSet{
	Message:  "Internal error, all changes within this transaction have been discarded",
	FailFlag: true,
}

Functions

This section is empty.

Types

type Db

type Db struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func GetDb

func GetDb() *Db

func (*Db) Close

func (db *Db) Close() error

func (*Db) NewTxn

func (db *Db) NewTxn() (*Txn, error)

type Txn

type Txn struct {
	// contains filtered or unexported fields
}

func (*Txn) Commit

func (txn *Txn) Commit() *rpc.ResultSet

func (*Txn) Execute

func (txn *Txn) Execute(stmt interface{}) *rpc.ResultSet

func (*Txn) Rollback

func (txn *Txn) Rollback()

func (*Txn) Valid

func (txn *Txn) Valid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL