Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BeginStmt ¶
type BeginStmt struct {
Writable bool
}
BeginStmt is a statement that creates a new transaction.
func (BeginStmt) NeedsTransaction ¶ added in v0.18.0
type CommitStmt ¶
type CommitStmt struct{}
CommitStmt is a statement that commits the current active transaction.
func (CommitStmt) IsReadOnly ¶
func (stmt CommitStmt) IsReadOnly() bool
func (CommitStmt) NeedsTransaction ¶ added in v0.18.0
func (stmt CommitStmt) NeedsTransaction() bool
type Context ¶
type Context struct {
Ctx context.Context
DB *database.Database
Conn *database.Connection
Params []environment.Param
}
type PreparedStatement ¶ added in v0.18.0
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) NeedsTransaction ¶ added in v0.18.0
func (stmt RollbackStmt) NeedsTransaction() bool
Click to show internal directories.
Click to hide internal directories.