Documentation
¶
Overview ¶
Package sqlitedb reads rowid tables of SQLite files (with committed WAL frames) in pure Go and serves them to go-rpmdb as a database/sql driver.
Index ¶
Constants ¶
const DriverName = "sqlite"
DriverName is the database/sql driver name go-rpmdb opens rpm sqlite databases with.
Variables ¶
var ErrCorrupt = errors.New("sqlitedb: corrupt database")
ErrCorrupt reports a structurally invalid database file.
var ErrReadOnly = errors.New("sqlitedb: only SELECT <columns> FROM <table> is supported")
ErrReadOnly is returned for any statement other than a plain column projection.
Functions ¶
func DecodeRecord ¶
DecodeRecord decodes an SQLite record into int64, float64, string, []byte, or nil values.
Types ¶
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
Cursor iterates the rows of one table b-tree in rowid order.
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is an open read-only database snapshot.
func Open ¶
Open opens the database at path and overlays the committed frames of path-wal when present.
type Driver ¶
type Driver struct{}
Driver is a read-only database/sql driver over this package's file reader.