Versions in this module Expand all Collapse all v0 v0.12.0 May 1, 2021 Changes in this version type CreateIndexStmt + Paths []document.Path v0.11.0 Mar 16, 2021 Changes in this version + var ErrResultClosed = errors.New("result already closed") + type AlterStmt struct + NewTableName string + TableName string + func (stmt AlterStmt) IsReadOnly() bool + func (stmt AlterStmt) Run(tx *database.Transaction, _ []expr.Param) (Result, error) + type AlterTableAddField struct + Constraint database.FieldConstraint + TableName string + func (stmt AlterTableAddField) IsReadOnly() bool + func (stmt AlterTableAddField) Run(tx *database.Transaction, _ []expr.Param) (Result, error) + type BeginStmt struct + Writable bool + func (stmt BeginStmt) IsReadOnly() bool + func (stmt BeginStmt) Run(tx *database.Transaction, args []expr.Param) (Result, error) + type CommitStmt struct + func (stmt CommitStmt) IsReadOnly() bool + func (stmt CommitStmt) Run(tx *database.Transaction, args []expr.Param) (Result, error) + type CreateIndexStmt struct + IfNotExists bool + IndexName string + Path document.Path + TableName string + Unique bool + func (stmt CreateIndexStmt) IsReadOnly() bool + func (stmt CreateIndexStmt) Run(tx *database.Transaction, args []expr.Param) (Result, error) + type CreateTableStmt struct + IfNotExists bool + Info database.TableInfo + TableName string + func (stmt CreateTableStmt) IsReadOnly() bool + func (stmt CreateTableStmt) Run(tx *database.Transaction, args []expr.Param) (Result, error) + type DropIndexStmt struct + IfExists bool + IndexName string + func (stmt DropIndexStmt) IsReadOnly() bool + func (stmt DropIndexStmt) Run(tx *database.Transaction, args []expr.Param) (Result, error) + type DropTableStmt struct + IfExists bool + TableName string + func (stmt DropTableStmt) IsReadOnly() bool + func (stmt DropTableStmt) Run(tx *database.Transaction, args []expr.Param) (Result, error) + type Query struct + Statements []Statement + func New(statements ...Statement) Query + func (q Query) Exec(tx *database.Transaction, args []expr.Param) (*Result, error) + func (q Query) Run(ctx context.Context, db *database.Database, args []expr.Param) (*Result, error) + type ReIndexStmt struct + TableOrIndexName string + func (stmt ReIndexStmt) IsReadOnly() bool + func (stmt ReIndexStmt) Run(tx *database.Transaction, args []expr.Param) (Result, error) + type Result struct + Iterator document.Iterator + Tx *database.Transaction + func (r *Result) Close() (err error) + func (r *Result) Iterate(fn func(d document.Document) error) error + type RollbackStmt struct + func (stmt RollbackStmt) IsReadOnly() bool + func (stmt RollbackStmt) Run(tx *database.Transaction, args []expr.Param) (Result, error) + type Statement interface + IsReadOnly func() bool + Run func(*database.Transaction, []expr.Param) (Result, error)