Database

A higher-level wrapper around SQLite, providing automatic initialization, cached prepared statements, and schema migrations.

Constructors

this
this(string dbFileName, string[] schema)
Undocumented in source.

Members

Functions

stmt
SQLite.PreparedStatement stmt()
SQLite.PreparedStatement stmt(string sql)

Return an SQLite.PreparedStatement, caching it.

Properties

db
SQLite db [@property getter]

Return a handle to the database, creating it first if necessary.

Variables

dbFileName
string dbFileName;

Database file name.

schema
string[] schema;

Schema definition, starting with the initial version, and followed by migration instructions. SQLite user_version is used to keep track of the current version. Successive versions of applications should only extend this array by adding new items at the end.

Meta