Documentation
¶
Index ¶
- Variables
- func Exec(conn *sqlite.Conn, query string, resultFn func(stmt *sqlite.Stmt) error, ...) error
- func ExecChecked(conn *sqlite.Conn, query string, resultFn func(stmt *sqlite.Stmt) error, ...) error
- func ExecScript(conn *sqlite.Conn, queries string) error
- func ExecTransient(conn *sqlite.Conn, query string, resultFn func(stmt *sqlite.Stmt) error, ...) (err error)
- func Execute(conn *sqlite.Conn, query string, opts *ExecOptions) error
- func ExecuteScript(conn *sqlite.Conn, queries string, opts *ExecOptions) (err error)
- func Save(conn *sqlite.Conn) (releaseFn func(*error))
- func WithTransactionRollbackOnError(conn *sqlite.Conn, level string, inside func() error) (err error)
- type ExecOptions
- type Pool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // In zombiezen this can be done with ExecOption parameter to Execute. In crawshaw this is a // noop for now. Here is how it was done for zombiezen: // https://github.com/zombiezen/go-sqlite/commit/754b7de62e83f3bc7fd226d0e9e1ab2bbe0f6916. Transaction = Save )
Functions ¶
func ExecChecked ¶
func ExecChecked(conn *sqlite.Conn, query string, resultFn func(stmt *sqlite.Stmt) error, args ...interface{}) error
TODO: Actually implement checked for crawshaw.
func ExecTransient ¶
func ExecuteScript ¶
func ExecuteScript(conn *sqlite.Conn, queries string, opts *ExecOptions) (err error)
Types ¶
type ExecOptions ¶
type ExecOptions = sqlitex.ExecOptions
Click to show internal directories.
Click to hide internal directories.