Home Download Docs Code Community
import "perkeep/pkg/sorted/sqlite"
Overview
Index

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

dbschema.go sqlitekv.go

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
Website layout inspired by memcached.
Content by the authors.