transactions

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTransactionNotFound = errors.New("no transaction found").WithCode(errors.CodInvalidParameterValue)

Functions

func NewTransaction

func NewTransaction(sqlTx *sql.SQLTx, transactionID string, mode schema.TxMode, db database.DB, sessionID string) *transaction

Types

type Transaction

type Transaction interface {
	GetID() string
	GetMode() schema.TxMode
	Rollback() error
	Commit() ([]*sql.SQLTx, error)
	GetSessionID() string
	SQLExec(request *schema.SQLExecRequest) error
	SQLQuery(request *schema.SQLQueryRequest) (*schema.SQLQueryResult, error)
}

Jump to

Keyboard shortcuts

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