Dprogramming.com - The D Programming Language [archived content]
Directory

Home
News
Wiki
Entice Designer
DCode editor
Linkdef
bintod
Tutorial
D FAQ
Code
    bintod
    DFL GUI
    D irclib IRC
    fileprompt
    ini files
    Linkdef
    list linked list
    mtext
    Splat sockets
    trayicon
    wildcard
Contact
Paste
Links

SQLite

This is the public domain SQLite 3.0.0 for D. Download here; includes the Windows DLL and lib file for DMD. Here is a small example:
import sqlite3_imp;

int main()
{
   sqlite3* db;
   int code;
   
   code = sqlite3_open("file.db", &db);
   if(SQLITE_OK != code)
   {
      printf("DB create error: %s\n", sqlite3_errmsg(db));
      return 1;
   }
   printf("DB open!\n");
   
   sqlite3_close(db);
   printf("DB closed.\n");
   
   return 0;
}
For more information, see the official SQLite web site for the C API, SQL syntax and more.

Copyright © 2004-2008 Christopher E. Miller