On 14/12/2014 9:21 a.m., Suliman wrote:
On the code.dlang.org I found SQLLite driver
https://github.com/biozic/d2sqlite3

Look like it's not ready for Windows:
  pragma(msg, "\nWARNING !!!\nDevelopped for POSIX systems only.\nNot
tested on Windows.\n");

I tried to add import to my project and I got next errors:

C:\Users\Dima\AppData\Roaming\dub\packages\d2sqlite3-0.5.2\source\d2sqlite3.d(49

): Error: 'std.conv.to!string.to!(immutable(char)*).to' is not nothrow
C:\Users\Dima\AppData\Roaming\dub\packages\d2sqlite3-0.5.2\source\d2sqlite3.d(47

): Error: function 'd2sqlite3.Sqlite3.versionString' is nothrow yet may
throw
C:\Users\Dima\AppData\Roaming\dub\packages\d2sqlite3-0.5.2\source\d2sqlite3.d(30

5): Error: 'std.conv.to!string.to!(immutable(char)*).to' is not nothrow
............................
FAIL
C:\Users\Dima\AppData\Roaming\dub\packages\d2sqlite3-0.5.2\.dub\build\libra
ry-debug-windows-x86-dmd_2065-008207FF175573C9097C24CC59516A1C\
d2sqlite3 static
Library
Error executing command run: dmd failed with exit code 1.

Is there any other SQLLite drivers ready to use for D?

Just to confirm, you are using dmd 2.065 right?
Because 2.066.1 is latest version.
Version 0.5.2 of that library looks to be for 2.066.

Anyway, that library wraps sqlite to make it easier in D.
There is bindings to sqlite in phobos [0].

[0] http://dlang.org/phobos/etc_c_sqlite3.html

Reply via email to