sqlite

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCheck added in v0.1.7

func AddCheck(pool db.Pool, table string, expr string) error

func AddNotNull added in v0.1.7

func AddNotNull(pool db.Pool, table string, column string) error

func Backup

func Backup(pool db.Pool, destPath string) error

func BatchExec

func BatchExec(pool db.Pool, query string, rows [][]any) (int64, error)

func CreateBlobFunction added in v0.1.9

func CreateBlobFunction(pool db.Pool, name string, nArgs int, fn func([][]byte) []byte) error

func CreateBlobFunctionFloat added in v0.1.9

func CreateBlobFunctionFloat(pool db.Pool, name string, nArgs int, fn func([][]byte) float64) error

func CreateFunction

func CreateFunction(pool db.Pool, name string, nArgs int, fn func([]string) string) error

func CreateFunctionBool added in v0.1.8

func CreateFunctionBool(pool db.Pool, name string, nArgs int, fn func([]string) bool) error

func CreateFunctionFloat added in v0.1.8

func CreateFunctionFloat(pool db.Pool, name string, nArgs int, fn func([]string) float64) error

func CreateFunctionInt added in v0.1.8

func CreateFunctionInt(pool db.Pool, name string, nArgs int, fn func([]string) int64) error

func DropCheck added in v0.1.7

func DropCheck(pool db.Pool, table string, constraintName string) error

func DropNotNull added in v0.1.7

func DropNotNull(pool db.Pool, table string, column string) error

func Dump

func Dump(pool db.Pool) (string, error)

func IntegrityCheck

func IntegrityCheck(pool db.Pool) error

func Open

func Open(path string) (db.Pool, error)

func OpenMemory

func OpenMemory() (db.Pool, error)

func OpenWith

func OpenWith(path string, pragmas map[string]string) (db.Pool, error)

func Pragma

func Pragma(pool db.Pool, name string) (string, error)

func PragmaBool added in v0.5.0

func PragmaBool(pool db.Pool, name string) (bool, error)

func PragmaInt added in v0.5.0

func PragmaInt(pool db.Pool, name string) (int, error)

func ReindexExpressions added in v0.1.7

func ReindexExpressions(pool db.Pool) error

func SetPragma

func SetPragma(pool db.Pool, name string, value string) error

func SetPragmaBool added in v0.5.0

func SetPragmaBool(pool db.Pool, name string, value bool) error

func SetPragmaInt added in v0.5.0

func SetPragmaInt(pool db.Pool, name string, value int) error

func TableExists

func TableExists(pool db.Pool, name string) (bool, error)

func Tables

func Tables(pool db.Pool) ([]string, error)

func Vacuum

func Vacuum(pool db.Pool) error

func Version

func Version(pool db.Pool) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL