sqlite

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

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

func BatchExec

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

func CreateFunction

func CreateFunction(pool db.Pool, name string, nArgs int, fn func([]string) 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 SetPragma

func SetPragma(pool db.Pool, name string, value string) 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