Overview ▹
Overview ▾
Package sqlite provides an implementation of sorted.KeyValue using an SQLite database file.
Index
- func InitDB(path string) error
- func NewStorage(file string) (sorted.KeyValue, error)
- func SQLCreateTables() []string
- func SchemaVersion() int
Package files
func InitDB
func InitDB(path string) error
InitDB creates a new sqlite database based on the file at path.
func NewStorage
func NewStorage(file string) (sorted.KeyValue, error)
NewStorage is a convenience that calls newKeyValueFromConfig with file as the sqlite storage file.
func SQLCreateTables
func SQLCreateTables() []string
func SchemaVersion
func SchemaVersion() int