Versions in this module Expand all Collapse all v0 v0.8.7 Aug 25, 2023 Changes in this version + const TimeFormat1 + const TimeFormat10 + const TimeFormat10TZ + const TimeFormat2 + const TimeFormat2TZ + const TimeFormat3 + const TimeFormat3TZ + const TimeFormat4 + const TimeFormat4TZ + const TimeFormat5 + const TimeFormat5TZ + const TimeFormat6 + const TimeFormat6TZ + const TimeFormat7 + const TimeFormat7TZ + const TimeFormat8 + const TimeFormat8TZ + const TimeFormat9 + const TimeFormat9TZ + const TimeFormatAuto + const TimeFormatDefault + const TimeFormatJulianDay + const TimeFormatUnix + const TimeFormatUnixFrac + const TimeFormatUnixMicro + const TimeFormatUnixMilli + const TimeFormatUnixNano + var Binary []byte + var Path string + type AggregateFunction interface + Step func(ctx Context, arg ...Value) + Value func(ctx Context) + type Backup struct + func (b *Backup) Close() error + func (b *Backup) PageCount() int + func (b *Backup) Remaining() int + func (b *Backup) Step(nPage int) (done bool, err error) + type Blob struct + func (b *Blob) Close() error + func (b *Blob) Read(p []byte) (n int, err error) + func (b *Blob) ReadFrom(r io.Reader) (n int64, err error) + func (b *Blob) Reopen(row int64) error + func (b *Blob) Seek(offset int64, whence int) (int64, error) + func (b *Blob) Size() int64 + func (b *Blob) Write(p []byte) (n int, err error) + func (b *Blob) WriteTo(w io.Writer) (n int64, err error) + type Conn struct + func Open(filename string) (*Conn, error) + func OpenFlags(filename string, flags OpenFlag) (*Conn, error) + func (c *Conn) AnyCollationNeeded() + func (c *Conn) Begin() Tx + func (c *Conn) BeginExclusive() (Tx, error) + func (c *Conn) BeginImmediate() (Tx, error) + func (c *Conn) Changes() int64 + func (c *Conn) Close() error + func (c *Conn) CreateCollation(name string, fn func(a, b []byte) int) error + func (c *Conn) CreateFunction(name string, nArg int, flag FunctionFlag, fn func(ctx Context, arg ...Value)) error + func (c *Conn) CreateWindowFunction(name string, nArg int, flag FunctionFlag, fn func() AggregateFunction) error + func (c *Conn) Exec(sql string) error + func (c *Conn) GetAutocommit() bool + func (c *Conn) LastInsertRowID() int64 + func (c *Conn) OpenBlob(db, table, column string, row int64, write bool) (*Blob, error) + func (c *Conn) Pragma(str string) ([]string, error) + func (c *Conn) Prepare(sql string) (stmt *Stmt, tail string, err error) + func (c *Conn) PrepareFlags(sql string, flags PrepareFlag) (stmt *Stmt, tail string, err error) + func (c *Conn) Savepoint() Savepoint + func (c *Conn) SetInterrupt(ctx context.Context) (old context.Context) + func (dst *Conn) Restore(dstDB, srcURI string) error + func (src *Conn) Backup(srcDB, dstURI string) error + func (src *Conn) BackupInit(srcDB, dstURI string) (*Backup, error) + type Context struct + func (c Context) GetAuxData(n int) any + func (c Context) ResultBlob(value []byte) + func (c Context) ResultBool(value bool) + func (c Context) ResultError(err error) + func (c Context) ResultFloat(value float64) + func (c Context) ResultInt(value int) + func (c Context) ResultInt64(value int64) + func (c Context) ResultNull() + func (c Context) ResultText(value string) + func (c Context) ResultTime(value time.Time, format TimeFormat) + func (c Context) ResultZeroBlob(n int64) + func (c Context) SetAuxData(n int, data any) + type Datatype uint32 + const BLOB + const FLOAT + const INTEGER + const NULL + const TEXT + func (t Datatype) String() string + type DriverConn interface + Backup func(srcDB, dstURI string) error + OpenBlob func(db, table, column string, row int64, write bool) (*Blob, error) + Restore func(dstDB, srcURI string) error + Savepoint func() Savepoint + SetInterrupt func(ctx context.Context) (old context.Context) + type Error struct + func (e *Error) As(err any) bool + func (e *Error) Code() ErrorCode + func (e *Error) Error() string + func (e *Error) ExtendedCode() ExtendedErrorCode + func (e *Error) Is(err error) bool + func (e *Error) SQL() string + func (e *Error) Temporary() bool + func (e *Error) Timeout() bool + type ErrorCode uint8 + const ABORT + const AUTH + const BUSY + const CANTOPEN + const CONSTRAINT + const CORRUPT + const EMPTY + const ERROR + const FORMAT + const FULL + const INTERNAL + const INTERRUPT + const IOERR + const LOCKED + const MISMATCH + const MISUSE + const NOLFS + const NOMEM + const NOTADB + const NOTFOUND + const NOTICE + const PERM + const PROTOCOL + const RANGE + const READONLY + const SCHEMA + const TOOBIG + const WARNING + func (e ErrorCode) Error() string + func (e ErrorCode) Temporary() bool + type ExtendedErrorCode uint16 + const ABORT_ROLLBACK + const AUTH_USER + const BUSY_RECOVERY + const BUSY_SNAPSHOT + const BUSY_TIMEOUT + const CANTOPEN_CONVPATH + const CANTOPEN_DIRTYWAL + const CANTOPEN_FULLPATH + const CANTOPEN_ISDIR + const CANTOPEN_NOTEMPDIR + const CANTOPEN_SYMLINK + const CONSTRAINT_CHECK + const CONSTRAINT_COMMITHOOK + const CONSTRAINT_DATATYPE + const CONSTRAINT_FOREIGNKEY + const CONSTRAINT_FUNCTION + const CONSTRAINT_NOTNULL + const CONSTRAINT_PINNED + const CONSTRAINT_PRIMARYKEY + const CONSTRAINT_ROWID + const CONSTRAINT_TRIGGER + const CONSTRAINT_UNIQUE + const CONSTRAINT_VTAB + const CORRUPT_INDEX + const CORRUPT_SEQUENCE + const CORRUPT_VTAB + const ERROR_MISSING_COLLSEQ + const ERROR_RETRY + const ERROR_SNAPSHOT + const IOERR_ACCESS + const IOERR_AUTH + const IOERR_BEGIN_ATOMIC + const IOERR_BLOCKED + const IOERR_CHECKRESERVEDLOCK + const IOERR_CLOSE + const IOERR_COMMIT_ATOMIC + const IOERR_CONVPATH + const IOERR_CORRUPTFS + const IOERR_DATA + const IOERR_DELETE + const IOERR_DELETE_NOENT + const IOERR_DIR_CLOSE + const IOERR_DIR_FSYNC + const IOERR_FSTAT + const IOERR_FSYNC + const IOERR_GETTEMPPATH + const IOERR_LOCK + const IOERR_MMAP + const IOERR_NOMEM + const IOERR_RDLOCK + const IOERR_READ + const IOERR_ROLLBACK_ATOMIC + const IOERR_SEEK + const IOERR_SHMLOCK + const IOERR_SHMMAP + const IOERR_SHMOPEN + const IOERR_SHMSIZE + const IOERR_SHORT_READ + const IOERR_TRUNCATE + const IOERR_UNLOCK + const IOERR_VNODE + const IOERR_WRITE + const LOCKED_SHAREDCACHE + const LOCKED_VTAB + const NOTICE_RBU + const NOTICE_RECOVER_ROLLBACK + const NOTICE_RECOVER_WAL + const READONLY_CANTINIT + const READONLY_CANTLOCK + const READONLY_DBMOVED + const READONLY_DIRECTORY + const READONLY_RECOVERY + const READONLY_ROLLBACK + const WARNING_AUTOINDEX + func (e ExtendedErrorCode) As(err any) bool + func (e ExtendedErrorCode) Error() string + func (e ExtendedErrorCode) Is(err error) bool + func (e ExtendedErrorCode) Temporary() bool + func (e ExtendedErrorCode) Timeout() bool + type FunctionFlag uint32 + const DETERMINISTIC + const DIRECTONLY + const INNOCUOUS + const SUBTYPE + type OpenFlag uint32 + const OPEN_CREATE + const OPEN_EXRESCODE + const OPEN_FULLMUTEX + const OPEN_MEMORY + const OPEN_NOFOLLOW + const OPEN_NOMUTEX + const OPEN_PRIVATECACHE + const OPEN_READONLY + const OPEN_READWRITE + const OPEN_SHAREDCACHE + const OPEN_URI + type PrepareFlag uint32 + const PREPARE_NORMALIZE + const PREPARE_NO_VTAB + const PREPARE_PERSISTENT + type Savepoint struct + func (s Savepoint) Release(errp *error) + func (s Savepoint) Rollback() error + type Stmt struct + func (s *Stmt) BindBlob(param int, value []byte) error + func (s *Stmt) BindBool(param int, value bool) error + func (s *Stmt) BindCount() int + func (s *Stmt) BindFloat(param int, value float64) error + func (s *Stmt) BindIndex(name string) int + func (s *Stmt) BindInt(param int, value int) error + func (s *Stmt) BindInt64(param int, value int64) error + func (s *Stmt) BindName(param int) string + func (s *Stmt) BindNull(param int) error + func (s *Stmt) BindText(param int, value string) error + func (s *Stmt) BindTime(param int, value time.Time, format TimeFormat) error + func (s *Stmt) BindZeroBlob(param int, n int64) error + func (s *Stmt) ClearBindings() error + func (s *Stmt) Close() error + func (s *Stmt) ColumnBlob(col int, buf []byte) []byte + func (s *Stmt) ColumnBool(col int) bool + func (s *Stmt) ColumnCount() int + func (s *Stmt) ColumnFloat(col int) float64 + func (s *Stmt) ColumnInt(col int) int + func (s *Stmt) ColumnInt64(col int) int64 + func (s *Stmt) ColumnName(col int) string + func (s *Stmt) ColumnRawBlob(col int) []byte + func (s *Stmt) ColumnRawText(col int) []byte + func (s *Stmt) ColumnText(col int) string + func (s *Stmt) ColumnTime(col int, format TimeFormat) time.Time + func (s *Stmt) ColumnType(col int) Datatype + func (s *Stmt) Err() error + func (s *Stmt) Exec() error + func (s *Stmt) Reset() error + func (s *Stmt) Step() bool + type TimeFormat string + func (f TimeFormat) Decode(v any) (time.Time, error) + func (f TimeFormat) Encode(t time.Time) any + type Tx struct + func (tx Tx) Commit() error + func (tx Tx) End(errp *error) + func (tx Tx) Rollback() error + type Value struct + func (v Value) Blob(buf []byte) []byte + func (v Value) Bool() bool + func (v Value) Float() float64 + func (v Value) Int() int + func (v Value) Int64() int64 + func (v Value) RawBlob() []byte + func (v Value) RawText() []byte + func (v Value) Text() string + func (v Value) Time(format TimeFormat) time.Time + func (v Value) Type() Datatype + type WindowFunction interface + Inverse func(ctx Context, arg ...Value) + type ZeroBlob int64