arsd.sqlite

SQLite implementation of the arsd.database.Database interface.

More...

Public Imports

arsd.database
public import arsd.database;
Undocumented in source.

Members

Classes

Sqlite
class Sqlite

Functions

openDBAndCreateIfNotPresent
Sqlite openDBAndCreateIfNotPresent(string filename, string sql, void delegate(Sqlite db) initialize)

The Database interface provides a consistent and safe way to access sql RDBMSs.

Detailed Description

Compile with -version=sqlite_extended_metadata_available if your sqlite is compiled with the SQLITE_ENABLE_COLUMN_METADATA C-preprocessor symbol.

If you enable that, you get the ability to use the queryDataObject() function with sqlite. (You can still use DataObjects, but you'll have to set up the mappings manually without the extended metadata.)

Meta

History

Originally written prior to July 2011 (before arsd on git).

Only lightly modified before then and May 2024 when it got an overhaul.

FIXME: PRAGMA foreign_keys = ON is something i wanna enable by default in here.