Documentation
¶
Overview ¶
Package sqlite adapts the pure-Go glebarez SQLite driver to gormdb, so the binary builds without CGO. Importing it registers the database/sql driver "sqlite", the name modernc.org/sqlite registers too: a binary that links both panics at init.
Index ¶
- type Driver
- func (Driver) Dialector(conn gorm.ConnPool) gorm.Dialector
- func (Driver) OpenDB(dsn string) (*sql.DB, error)
- func (Driver) PragmaParams(pragmas map[string]string) url.Values
- func (Driver) ReaderParams(busyTimeout time.Duration) url.Values
- func (Driver) WriterParams(busyTimeout time.Duration) url.Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct{}
Driver implements gormdb.SqliteDriver with glebarez.
func (Driver) OpenDB ¶
OpenDB returns a connection pool for dsn with the database/sql driver glebarez registers, "sqlite".
func (Driver) PragmaParams ¶
PragmaParams returns the pragmas as glebarez's _pragma=name(value) parameters, sorted by name.
func (Driver) ReaderParams ¶
ReaderParams returns a reader's DSN query parameters in glebarez's format.
Click to show internal directories.
Click to hide internal directories.