Versions in this module Expand all Collapse all v0 v0.4.1 Sep 13, 2021 v0.4.0 Sep 13, 2021 Changes in this version + var PoolCloseTimeout = 5 * time.Second + func Exec(conn *sqlite.Conn, query string, resultFn func(stmt *sqlite.Stmt) error, ...) error + func ExecScript(conn *sqlite.Conn, queries string) (err error) + func ExecTransient(conn *sqlite.Conn, query string, resultFn func(stmt *sqlite.Stmt) error, ...) (err error) + func InsertRandID(stmt *sqlite.Stmt, param string, min, max int64) (id int64, err error) + func ResultFloat(stmt *sqlite.Stmt) (float64, error) + func ResultInt(stmt *sqlite.Stmt) (int, error) + func ResultInt64(stmt *sqlite.Stmt) (int64, error) + func ResultText(stmt *sqlite.Stmt) (string, error) + func Save(conn *sqlite.Conn) (releaseFn func(*error)) + type Buffer struct + func NewBuffer(conn *sqlite.Conn) (*Buffer, error) + func NewBufferSize(conn *sqlite.Conn, pageSize int) (*Buffer, error) + func (bb *Buffer) Cap() (n int64) + func (bb *Buffer) Close() error + func (bb *Buffer) Len() (n int64) + func (bb *Buffer) Read(p []byte) (n int, err error) + func (bb *Buffer) ReadByte() (byte, error) + func (bb *Buffer) Reset() + func (bb *Buffer) UnreadByte() error + func (bb *Buffer) Write(p []byte) (n int, err error) + func (bb *Buffer) WriteByte(c byte) error + func (bb *Buffer) WriteString(p string) (n int, err error) + type File struct + func NewFile(conn *sqlite.Conn) (*File, error) + func NewFileSize(conn *sqlite.Conn, initSize int) (*File, error) + func (bb *File) Cap() (n int64) + func (bb *File) Close() error + func (bb *File) Len() (n int64) + func (bb *File) Read(p []byte) (n int, err error) + func (bb *File) Seek(offset int64, whence int) (int64, error) + func (bb *File) Truncate(size int64) error + func (bb *File) Write(p []byte) (n int, err error) + type Pool struct + func Open(uri string, flags sqlite.OpenFlags, poolSize int) (pool *Pool, err error) + func (p *Pool) Close() (err error) + func (p *Pool) Get(ctx context.Context) *sqlite.Conn + func (p *Pool) GetSnapshot(ctx context.Context, schema string) (*sqlite.Snapshot, error) + func (p *Pool) Put(conn *sqlite.Conn)