Versions in this module Expand all Collapse all v0 v0.1.0 Aug 10, 2026 Changes in this version + const BatchEnv + const FunctionPathEnv + const LibraryPathEnv + var ErrUnsupportedPlatform = errors.New("purego-sqlite: no SQLite library is shipped for " + runtimePlatform) + func ForcePortableFunctionsForTest(on bool) + func HasExtension(e Extension) (bool, error) + func LoadedLibraryPath() string + func RowBatchingActive() (bool, error) + func SetLibraryPath(path string) error + func SourceID() (string, error) + func ThreadSafeMode() (int, error) + func UseMarshaledFunctions() (bool, error) + func Version() (string, error) + func VersionNumber() (int, error) + type Accumulation struct + AllInt bool + Count int64 + IntSum int64 + Max float64 + Min float64 + Sum float64 + type AggregateFunc func(ctx *FuncContext, acc Accumulation) + type Backup struct + func (b *Backup) Close() error + func (b *Backup) PageCount() int + func (b *Backup) Remaining() int + func (b *Backup) Step(pages int) (done bool, err error) + type CheckpointMode int32 + const CheckpointFull + const CheckpointPassive + const CheckpointRestart + const CheckpointTruncate + type Code int32 + const Abort + const Auth + const Busy + const BusyRecovery + const BusySnapshot + const BusyTimeout + const CantOpen + const CantOpenNotempdir + const Constraint + const ConstraintCheck + const ConstraintForeignKey + const ConstraintNotNull + const ConstraintPrimaryKey + const ConstraintRowID + const ConstraintTrigger + const ConstraintUnique + const Corrupt + const Done + const Empty + const ErrorCode + const Format + const Full + const IOErr + const IOErrFsync + const IOErrWrite + const Internal + const Interrupt + const Locked + const Mismatch + const Misuse + const NoLFS + const NoMem + const NotADB + const NotFound + const Notice + const NoticeRecoverRollback + const NoticeRecoverWAL + const OK + const Perm + const Protocol + const Range + const ReadOnly + const ReadOnlyRollback + const Row + const Schema + const TooBig + const Warning + func (c Code) Error() string + func (c Code) IsExtended() bool + func (c Code) Primary() Code + func (c Code) String() string + type ColumnType int32 + const TypeBlob + const TypeFloat + const TypeInteger + const TypeNull + const TypeText + func (t ColumnType) String() string + type Conn struct + func Open(path string) (*Conn, error) + func OpenFlags(path string, flags OpenFlag, vfs string) (*Conn, error) + func (c *Conn) BackupFrom(dstName string, src *Conn, srcName string) (*Backup, error) + func (c *Conn) BackupTo(dst *Conn) error + func (c *Conn) BusyTimeout(d time.Duration) error + func (c *Conn) Changes() int64 + func (c *Conn) Close() error + func (c *Conn) Closed() bool + func (c *Conn) CreateAggregate(name string, nArg int, flags FunctionFlag, fn AggregateFunc) error + func (c *Conn) CreateFunction(name string, nArg int, flags FunctionFlag, fn ScalarFunc) error + func (c *Conn) EnableLoadExtension(on bool) error + func (c *Conn) Exec(sql string, args ...any) error + func (c *Conn) Filename(dbName string) string + func (c *Conn) InTransaction() bool + func (c *Conn) Interrupt() + func (c *Conn) LastInsertRowID() int64 + func (c *Conn) LoadExtension(path, entry string) error + func (c *Conn) Path() string + func (c *Conn) Prepare(sql string) (*Stmt, error) + func (c *Conn) PrepareFlags(sql string, flags PrepareFlag) (*Stmt, error) + func (c *Conn) PrepareTail(sql string) (*Stmt, string, error) + func (c *Conn) TotalChanges() int64 + func (c *Conn) WALAutoCheckpoint(pages int) error + func (c *Conn) WALCheckpoint(dbName string, mode CheckpointMode) (walPages, checkpointed int, err error) + type Error struct + Code Code + Extended Code + Message string + SQL string + func (e *Error) Error() string + func (e *Error) Is(target error) bool + type Extension string + const ExtSQLiteVec + func CompiledExtensions() ([]Extension, error) + type FuncContext struct + func (c *FuncContext) ResultBlob(v []byte) + func (c *FuncContext) ResultError(msg string) + func (c *FuncContext) ResultFloat(v float64) + func (c *FuncContext) ResultInt64(v int64) + func (c *FuncContext) ResultNull() + func (c *FuncContext) ResultText(v string) + type FunctionFlag int32 + const Deterministic + const DirectOnly + const Innocuous + type OpenFlag int32 + const OpenCreate + const OpenDefault + const OpenExResCode + const OpenFullMutex + const OpenMemory + const OpenNoFollow + const OpenNoMutex + const OpenPrivateCache + const OpenReadOnly + const OpenReadWrite + const OpenSharedCache + const OpenURI + type PrepareFlag uint32 + const PrepareNoVTab + const PreparePersistent + type ScalarFunc func(ctx *FuncContext, args []Value) + type Stmt struct + func (s *Stmt) Bind(args ...any) error + func (s *Stmt) BindBlob(i int, v []byte) error + func (s *Stmt) BindBool(i int, v bool) error + func (s *Stmt) BindCount() int + func (s *Stmt) BindFloat(i int, v float64) error + func (s *Stmt) BindIndex(name string) int + func (s *Stmt) BindInt64(i int, v int64) error + func (s *Stmt) BindName(i int) string + func (s *Stmt) BindNull(i int) error + func (s *Stmt) BindText(i int, v string) error + func (s *Stmt) BindZeroBlob(i, n int) error + func (s *Stmt) Busy() bool + func (s *Stmt) ClearBindings() error + func (s *Stmt) Close() error + func (s *Stmt) ColumnBlob(i int) []byte + func (s *Stmt) ColumnBool(i int) bool + func (s *Stmt) ColumnBytes(i int) int + func (s *Stmt) ColumnCount() int + func (s *Stmt) ColumnDeclType(i int) string + func (s *Stmt) ColumnFloat(i int) float64 + func (s *Stmt) ColumnInt(i int) int + func (s *Stmt) ColumnInt64(i int) int64 + func (s *Stmt) ColumnIsNull(i int) bool + func (s *Stmt) ColumnName(i int) string + func (s *Stmt) ColumnRawBlob(i int) []byte + func (s *Stmt) ColumnRawText(i int) []byte + func (s *Stmt) ColumnText(i int) string + func (s *Stmt) ColumnType(i int) ColumnType + func (s *Stmt) DataCount() int + func (s *Stmt) ExpandedSQL() string + func (s *Stmt) ReadOnly() bool + func (s *Stmt) Reset() error + func (s *Stmt) Run() error + func (s *Stmt) SQL() string + func (s *Stmt) Step() (bool, error) + type Value struct + func (v Value) Blob() []byte + func (v Value) Float() float64 + func (v Value) Int64() int64 + func (v Value) RawBlob() []byte + func (v Value) Text() string + func (v Value) Type() ColumnType