Database Bindings
Difference (last change) (Author, normal page display)
Added: 128a129,131
DDBC and HibernateD?: DB abstraction layer (similar to JDBC) and ORM (similar to Hibernate)![]() |
There are some database bindings available for D.
![]() |
|
ArangoDB?
See ReeD
Berkeley DB
See Berkeley DB
DBF
- very simple library to access DBF files from D
- by Carlos Santander
http://csb.50webs.com/dbf.html
- Announcement:
DsourceTopic:1496
D-DBAPI
- Project page:
d-dbapi
- Description: Simple database api for the D programming language. The D-DBAPI project is a database interface using the PEP239 python specification as a base.
- Announcement:
NG:digitalmars.D.announce/8976
D DBI
Project pages:
Forum: 
Description: D DBI is a database-independent interface for the D programming language (from project page). Includes support for:
with these coming soon:MySQL
- Steve Teale's native D binding
http://www.britseyeview.com/software/mysqln/


MySQL? binding for Windows and Linux
- Download page:
http://my.opera.com/run3/blog/2012/03/13/d-mysql
- Works with MySQL? 5.5

DDBC and HibernateD?: DB abstraction layer (similar to JDBC) and ORM (similar to Hibernate)
http://sourceforge.net/p/hibernated/wiki/HibernateD/
ODBC
- From the Win32 API: ODBC32.DLL
http://spottedtiger.tripod.com/D_Language/D_Support_Projects_XP.html
- Announcement:
NG:digitalmars.D/8777
- WindowsAPI: A project to convert all of the Windows headers to D. Based on the public domain MinGW headers.
- sdbo: A database utilities library for Windows and Linux platforms using ODBC. Check it out if you look for an easy to use and portable interface to almost all important databases that allows you to execute a SQL statement in a one-liner.
DsourceProject:sdbo, download at
http://svn.dsource.org/projects/sdbo/downloads, SVN sources at
http://svn.dsource.org/projects/sdbo. Check out the doxys in trunk/html.
Oracle for Linux
- by Manfred Hansen
- ported from
libsqlora8
- Website:
http://www.steinmole.de/d/ (Dead link: checked 02/25/2012 currently near the bottom of the page)
- Download:
http://www.steinmole.de/d/oracle_binding_0.1.0.tgz (Dead link: checked 02/25/2012)
- Announcement:
DsourceTopic:1430
Oracle
- OCILIB is an open source and cross platform Oracle Driver that delivers efficient access to Oracle databases.
OCILIB
- D bindings:
https://github.com/D-Programming-Deimos/ocilib
PostgreSQL
Adam D. Ruppe simple binding:
https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff
PostgreSQL lib pq Object Oriented wrapper by AntonioMonteiro
- Familiar connection, statment, resultSet classes
- Intergrated with
dool (need to recompile dool with version=dqp)
- part of
dAntFW (D application development framework)

SQLite
Bindings project (SQLite 3.5.1): DsourceProject:bindings/browser/trunk/sqlite3-d
D DBI project (SQLite 3.3.11): DsourceProject:ddbi/wiki/SQLite3Subproject
SQLiteD by iceeLyne
- Interface SQLite 3.3.5/3.3.6, and OO Wrapper (pre-alpha, compiled and tested on WinXP, DMD 0.155).
- Download:
http://icube.freezope.org/sqlited/
- part of
Icequake (written in D using the DWT gui toolkit)
- Announcement:
NG:digitalmars.D/4288
- Download:
http://www.dprogramming.com/sqlite.php
- Callback function example:
NG:digitalmars.D/7570
- Familiar connection, statment, resultSet classes
- Intergrated with
dool (need to recompile dool with version=sqlite3)
- part of
dAntFW (D application development framework)
- a framework library for D language that is a collection of various libraries (gui, database, xml etc.)
- includes support for SQLite 3
http://sourceforge.net/projects/dframework/
- Based on SQLite bindings were developed by Burton Radons:
sqlite-0.0.1
- Fixed Burton Radon's sqlite library to compile with DMD 0.88.
- Stored in the Files > projects section
D Lab.
- Requires the included .dll (216 KB).
- The sqlite library for D was designed for Windows, but I'm optimistic that it wouldn't take many changes to work on other platforms. -- JustinCalvarese
- Sqlite is basically a database in a .dll. Its source is in the public domain.

More information about SQLite:
Free sqlite tools:MDBtoSQLiteVBS - .vbs script that shows how to produce an .sql file
SQLite Control Center - can load *.sql files produced by the .vbs script
SQLite Database Browser - perhaps better suited for viewing very large databases, but doesn't allow the use of SQL commands
FolderProjects