perkeep.org: perkeep.org/pkg/sorted/sqlite Index | Files

package sqlite

import "perkeep.org/pkg/sorted/sqlite"

Package sqlite provides an implementation of sorted.KeyValue using an SQLite database file.

Index

Package Files

dbschema.go sqlitekv.go

Variables

var ErrNotCompiled = errors.New("" /* 181 byte string literal not displayed */ + compileHint())

func CompiledIn Uses

func CompiledIn() bool

CompiledIn returns whether SQLite support is compiled in. If it returns false, the build tag "with_sqlite" was not specified.

func InitDB Uses

func InitDB(path string) error

InitDB creates a new sqlite database based on the file at path.

func NewStorage Uses

func NewStorage(file string) (sorted.KeyValue, error)

NewStorage is a convenience that calls newKeyValueFromConfig with file as the sqlite storage file.

func SQLCreateTables Uses

func SQLCreateTables() []string

func SchemaVersion Uses

func SchemaVersion() int

Package sqlite imports 11 packages (graph) and is imported by 3 packages. Updated 2019-06-20. Refresh now. Tools for package owners.