Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeginStmt ¶
type BeginStmt struct {
Writable bool
}
BeginStmt is a statement that creates a new transaction.
func (BeginStmt) IsReadOnly ¶
type CommitStmt ¶
type CommitStmt struct{}
CommitStmt is a statement that commits the current active transaction.
func (CommitStmt) IsReadOnly ¶
func (stmt CommitStmt) IsReadOnly() bool
type Context ¶
type Context struct { Ctx context.Context DB *database.Database Tx *database.Transaction Params []environment.Param }
func (*Context) GetTx ¶
func (c *Context) GetTx() *database.Transaction
type Query ¶
A Query can execute statements against the database. It can read or write data from any table, or even alter the structure of the database. Results are returned as streams.
type RollbackStmt ¶
type RollbackStmt struct{}
RollbackStmt is a statement that rollbacks the current active transaction.
func (RollbackStmt) IsReadOnly ¶
func (stmt RollbackStmt) IsReadOnly() bool
Click to show internal directories.
Click to hide internal directories.