Welcome to D DBI

Description

D DBI is a database independent interface for the D programming language.

License

D DBI is licensed under the BSD License.

Status

D DBI has been around for a while now, but most of the time in a hiatus / maintance mode. This has led to some bitrot, and so a lot that used to work probably doesn't as it is presented in trunk. Work to get D DBI back to former glory and beyond has started though, and this time with certain commercial interests in the back.

The number of available backends may suffer due to this work, at least initially - as the functionality in the revised interfaces will be larger. Depending somewhat on contributions from others, the likely prioritization of backends will be Mysql, Sqlite and PostreSQL - beyond that contributions is a necessity. It is possible that such contributions can be in the form of drivers aka those found for JDBC, though - if plans for dynamic loading of functionality/plugins are properly implemented.

An initial release of the revised D DBI (the first release for a long long time) will hopefully be possible during June 2008.

Update 24th of July: I got delayed ... I'm now aiming for mid-August.

Lars Ivar Igesund, 4th of June, 2008

Supported Databases and Interfaces in earlier releases

Started

Old news

The current change log is available here.

Documentation

The documentation for the most recent version can be found here.

Another recommended way to learn how to use D DBI is to look at the unittests in the SqliteDatabase file.

For information on how to build D DBI into a library, see HowToBuild.

Authors

See the list here.

Sample Code

import dbi.sqlite.SqliteDatabase;
import dbi.Row;
import tango.io.Stdout;

void main() {
    SqliteDatabase db = new SqliteDatabase();
    db.connect("test.db");

    Row[] rows = db.queryFetchAll("SELECT * FROM names");
    foreach (Row row; rows) {
        Stdout("name:")(row["name"]).newline()("zip:")(row["zip"]).newline();
    }

    db.close();
}

Downloads

Version 0.2.5

Most Recent

SVN

Previous

Version 0.2.4

Project Information

NameDDBI
CategoryServer Resources
Status3 - Alpha
Short DescriptionA database independent interface.
Long Description
Home Pagehttp://www.dsource.org/projects/ddbi/
Forumhttp://www.dsource.org/forums/viewforum.php?f=60
Database Bindings (Wiki4D) http://www.prowiki.org/wiki4d/wiki.cgi?DatabaseBindings