Versions in this module Expand all Collapse all v0 v0.3.2 Jul 18, 2026 v0.3.1 Jul 18, 2026 Changes in this version + const DBStatusCacheHit + const DBStatusCacheMiss + const DBStatusCacheSpill + const DBStatusCacheUsed + const DBStatusCacheUsedShared + const DBStatusCacheWrite + const DBStatusDeferredFKs + const DBStatusLookasideHit + const DBStatusLookasideMissFull + const DBStatusLookasideMissSize + const DBStatusLookasideUsed + const DBStatusSchemaUsed + const DBStatusStmtUsed + const DBStatusTempbufSpill + var ErrPageCacheConflict = errors.New("sqlite: a different page cache module is already registered") + var ErrPageCacheTooLate = errors.New(...) + var ErrorCodeString = map[int]string + func Connector(dsn string) driver.Connector + func Limit(c *sql.Conn, id int, newVal int) (r int, err error) + func MustRegisterCollationUtf8(zName string, impl func(left, right string) int) + func MustRegisterDeterministicScalarFunction(zFuncName string, nArg int32, ...) + func MustRegisterFunction(zFuncName string, impl *FunctionImpl) + func MustRegisterPageCache(m PageCache) + func MustRegisterScalarFunction(zFuncName string, nArg int32, ...) + func RegisterCollationUtf8(zName string, impl func(left, right string) int) error + func RegisterConnectionHook(fn ConnectionHookFn) + func RegisterDeterministicScalarFunction(zFuncName string, nArg int32, ...) (err error) + func RegisterFunction(zFuncName string, impl *FunctionImpl) error + func RegisterPageCache(m PageCache) error + func RegisterScalarFunction(zFuncName string, nArg int32, ...) (err error) + type AggregateFunction interface + Final func(ctx *FunctionContext) + Step func(ctx *FunctionContext, rowArgs []driver.Value) error + WindowInverse func(ctx *FunctionContext, rowArgs []driver.Value) error + WindowValue func(ctx *FunctionContext) (driver.Value, error) + type Backup struct + func (b *Backup) Commit() (driver.Conn, error) + func (b *Backup) Finish() error + func (b *Backup) PageCount() int + func (b *Backup) Remaining() int + func (b *Backup) Step(n int32) (bool, error) + type Cache interface + Destroy func() + Fetch func(key uint32, mode FetchMode) Page + PageCount func() int + Rekey func(p Page, oldKey, newKey uint32) + SetSize func(n int) + Shrink func() + Truncate func(limit uint32) + Unpin func(p Page, discard bool) + type ColumnInfo struct + DatabaseName string + DeclType string + Name string + OriginName string + TableName string + type CommitHookFn func() int32 + type ConnectionHookFn func(conn ExecQuerierContext, dsn string) error + type DBStatus interface + Status func(op DBStatusOp, reset bool) (current, high int, err error) + type DBStatusOp int32 + type Driver struct + func (d *Driver) Open(name string) (conn driver.Conn, err error) + func (d *Driver) RegisterConnectionHook(fn ConnectionHookFn) + type Error struct + func (e *Error) Code() int + func (e *Error) Error() string + type ExecQuerierContext interface + type FetchMode int32 + const FetchCreateEasy + const FetchCreateForce + const FetchLookup + type FileControl interface + FileControlDataVersion func(dbName string) (uint32, error) + FileControlPersistWAL func(dbName string, mode int) (int, error) + type FunctionContext struct + type FunctionImpl struct + Deterministic bool + MakeAggregate func(ctx FunctionContext) (AggregateFunction, error) + NArgs int32 + Scalar func(ctx *FunctionContext, args []driver.Value) (driver.Value, error) + VolatileArgs bool + type HookRegisterer interface + RegisterCommitHook func(CommitHookFn) + RegisterPreUpdateHook func(PreUpdateHookFn) + RegisterRollbackHook func(RollbackHookFn) + type Page interface + Buf func() unsafe.Pointer + Extra func() unsafe.Pointer + type PageCache interface + Create func(pageSize, extraSize int, purgeable bool) (Cache, error) + type PreUpdateHookFn func(SQLitePreUpdateData) + type RollbackHookFn func() + type SQLitePreUpdateData struct + DatabaseName string + NewRowID int64 + OldRowID int64 + Op int32 + TableName string + func (d *SQLitePreUpdateData) Count() int + func (d *SQLitePreUpdateData) Depth() int + func (d *SQLitePreUpdateData) New(dest ...any) error + func (d *SQLitePreUpdateData) Old(dest ...any) error