Documentation
¶
Overview ¶
Package sqlite reads tables from an SQLite database file, read-only and without cgo: enough to list GOG Galaxy's library. It follows the file format (https://www.sqlite.org/fileformat2.html) for table b-trees, overflow pages, records and the write-ahead log. Indexes, WITHOUT ROWID tables and UTF-16 databases aren't supported.
Index ¶
Constants ¶
View Source
const MaxFile = 512 << 20
MaxFile caps the size of a database (and its WAL) that is read.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is an open database. Pages are read from the file as they're needed, so a large database costs little memory; the write-ahead log (small) is read whole.
func Open ¶
Open opens a database file (and reads its -wal file, when there is one). Close it when done.
Click to show internal directories.
Click to hide internal directories.