Versions in this module Expand all Collapse all v0 v0.1.1 Sep 5, 2026 Changes in this version + func RegisterScalarFunction(name string, nArgs int32, ...) error + type FunctionContext = sqlite.FunctionContext v0.1.0 Sep 4, 2026 Changes in this version + const FooterSize + const FormatVersion + const Magic + const MaxDataSize + var ErrBusy = errors.New("engine: database is busy (another session is writing)") + var ErrClosed = errors.New("engine: database is closed") + var ErrNoData = errors.New("engine: no ExecDB data found") + var ErrNotOverwritable = errors.New(...) + var ErrTooLarge = errors.New("engine: database is too large to serialize") + func Complete(sql string) (bool, error) + type DB struct + func New() (*DB, error) + func Open(path string) (*DB, error) + func OpenSelf() (*DB, error) + func (db *DB) Close() error + func (db *DB) Exec(query string, args ...any) (sql.Result, error) + func (db *DB) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) + func (db *DB) Info() Info + func (db *DB) Load(path string) error + func (db *DB) LoadFrom(r io.Reader) error + func (db *DB) Overwrite() error + func (db *DB) Query(query string, args ...any) (*sql.Rows, error) + func (db *DB) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error) + func (db *DB) QueryRow(query string, args ...any) *sql.Row + func (db *DB) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row + func (db *DB) Session(ctx context.Context) (*Session, error) + func (db *DB) Snapshot(path string) error + func (db *DB) SnapshotTo(w io.Writer) error + type Info struct + DataLength int64 + DataOffset int64 + HasData bool + Path string + Version uint32 + func Inspect(path string) (Info, error) + type Session struct + func (s *Session) Close() error + func (s *Session) Exec(query string, args ...any) (sql.Result, error) + func (s *Session) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) + func (s *Session) Prepare(query string) (*sql.Stmt, error) + func (s *Session) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) + func (s *Session) Query(query string, args ...any) (*sql.Rows, error) + func (s *Session) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error) + func (s *Session) QueryRow(query string, args ...any) *sql.Row + func (s *Session) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row