Documentation
¶
Index ¶
- func AddCheck(pool db.Pool, table string, expr string) error
- func AddNotNull(pool db.Pool, table string, column string) error
- func Backup(pool db.Pool, destPath string) error
- func BatchExec(pool db.Pool, query string, rows [][]any) (int64, error)
- func CreateBlobFunction(pool db.Pool, name string, nArgs int, fn func([][]byte) []byte) error
- func CreateBlobFunctionFloat(pool db.Pool, name string, nArgs int, fn func([][]byte) float64) error
- func CreateFunction(pool db.Pool, name string, nArgs int, fn func([]string) string) error
- func CreateFunctionBool(pool db.Pool, name string, nArgs int, fn func([]string) bool) error
- func CreateFunctionFloat(pool db.Pool, name string, nArgs int, fn func([]string) float64) error
- func CreateFunctionInt(pool db.Pool, name string, nArgs int, fn func([]string) int64) error
- func DropCheck(pool db.Pool, table string, constraintName string) error
- func DropNotNull(pool db.Pool, table string, column string) error
- func Dump(pool db.Pool) (string, error)
- func IntegrityCheck(pool db.Pool) error
- func Open(path string) (db.Pool, error)
- func OpenMemory() (db.Pool, error)
- func OpenWith(path string, pragmas map[string]string) (db.Pool, error)
- func Pragma(pool db.Pool, name string) (string, error)
- func PragmaBool(pool db.Pool, name string) (bool, error)
- func PragmaInt(pool db.Pool, name string) (int, error)
- func ReindexExpressions(pool db.Pool) error
- func SetPragma(pool db.Pool, name string, value string) error
- func SetPragmaBool(pool db.Pool, name string, value bool) error
- func SetPragmaInt(pool db.Pool, name string, value int) error
- func TableExists(pool db.Pool, name string) (bool, error)
- func Tables(pool db.Pool) ([]string, error)
- func Vacuum(pool db.Pool) error
- func Version(pool db.Pool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlobFunction ¶ added in v0.1.9
func CreateBlobFunctionFloat ¶ added in v0.1.9
func CreateFunction ¶
func CreateFunctionBool ¶ added in v0.1.8
func CreateFunctionFloat ¶ added in v0.1.8
func CreateFunctionInt ¶ added in v0.1.8
func DropNotNull ¶ added in v0.1.7
func IntegrityCheck ¶
func OpenMemory ¶
func ReindexExpressions ¶ added in v0.1.7
func SetPragmaBool ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.