A thin wrapper around SQLite3

Package Information

Version0.13.0 (2017-Apr-02)
CopyrightCopyright 2011-16 Nicolas Sicard
AuthorsNicolas Sicard, Other contributors: see Github repo
Registered byNicolas Sicard
Dependencies none
System dependenciesSQLite version >= 3.8.7


To use this package, put the following dependency into your project's dependencies section:




Build Status Coverage Status Dub Downloads

This is a small wrapper around SQLite (version >= 3.8.7) for the D programming language. It wraps the C API in an idiomatic manner and handles built-in D types and Nullable!T automatically.


Online documentation

dub configurations

  • `with-lib` (the default): assumes that SQLite is already installed and available to the linker. Set the right path for the SQLite library in your project's dub.json file using the lflags setting:
    "lflags": ["-L/path/to/lib"]
  • `without-lib`: you manage linking SQLite yourself.
  • `all-included` (work in progress): on Windows, use a prebuilt SQLite DLL (bundled with this library); on Posix systems, builds SQLite from the source amalgamation (also bundled with this library), using a minimal building configuration.

Set the right configuration for you project in its dub.json file using the subConfigurations setting, e.g.:

    "subConfigurations": {
        "d2sqlite3": "all-included"

C binding generation

The D binding file sqlite3.d is generated from the C header file sqlite3.h, using jacob-carlborg/dstep. I try to keep it up to date.

Available versions

0.13.0 0.12.1 0.12.0 0.11.0 0.10.0 0.9.8 0.9.7 0.9.6 0.9.5 0.9.4 0.9.2 0.9.1 0.9.0 0.8.1 0.8.0 0.7.3 0.7.2 0.7.1 0.7.0 0.6.0 0.5.3 0.5.2 0.5.1 0.5.0 0.4.1 0.4.0 0.3.1 0.3.0 0.2.0 0.1.0 ~master ~naked-rows