|
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.
|