Documentation
¶
Index ¶
- Constants
- func Backup(db *sql.DB, dest string) error
- func Close(db *sql.DB)
- func Commands(db *sql.DB, buffer string, echo bool, w io.Writer) error
- func DataVersion(db *sql.DB) (int64, error)
- func File(db *sql.DB, file string, echo bool, w io.Writer) error
- func Filename(db *sql.DB) string
- func Open(file string, opts ...Optional) (*sql.DB, error)
- func Opener(opts ...Optional) func(string) (*sql.DB, error)
- func Pragmas(db *sql.DB, w io.Writer)
- func Version() (string, int, string)
- type Config
- type FuncReg
- type Hook
- type Optional
- type Server
Constants ¶
View Source
const (
// DefaultDriver is the default driver name to be registered
DefaultDriver = "sqlite"
)
Variables ¶
This section is empty.
Functions ¶
func DataVersion ¶
DataVersion returns the version number of the schema
Types ¶
type Config ¶ added in v0.0.3
type Config struct {
// contains filtered or unexported fields
}
Config represents the sqlite configuration options
type Hook ¶ added in v0.0.3
type Hook func(*sqlite3.SQLiteConn) error
Hook is an SQLite connection hook
type Optional ¶ added in v0.0.3
type Optional func(*Config)
func WithDriver ¶ added in v0.0.3
WithDriver sets the driver name used
func WithExists ¶ added in v0.0.3
FailIfMissing will cause open to fail if file does not already exist
func WithFunctions ¶ added in v0.0.3
Functions registers custom functions
Click to show internal directories.
Click to hide internal directories.