SQLite

sqlite3* wrapper.

Constructors

this
this(string fn, bool readOnly)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Classes

PreparedStatement
class PreparedStatement

sqlite3_stmt* wrapper.

Functions

exec
void exec(string sql)

Run a simple query, discarding the result.

prepare
PreparedStatement prepare(string sql)

Construct a prepared statement.

query
auto query(string sql)

Run a simple query, provided as an SQL string.

Properties

changes
int changes [@property getter]

Return the number of changed rows. (sqlite3_changes)

lastInsertRowID
long lastInsertRowID [@property getter]

Return the ID of the last inserted row. (sqlite3_last_insert_rowid)

Variables

db
sqlite3* db;

C sqlite3* object.

Meta