www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - SQLite with D

reply reimi gibbons <rei2x hotmail.com> writes:
im failry new to D, is there any D library project with support for SQLite, if
not is there any guide so i can integrate sqlite amalgamated c source
(sqlite3.c, sqlite3.h) into my D code.
Apr 23 2009
next sibling parent "Denis Koroskin" <2korden gmail.com> writes:
On Fri, 24 Apr 2009 06:44:56 +0400, reimi gibbons <rei2x hotmail.com> wrote:

 im failry new to D, is there any D library project with support for  
 SQLite, if not is there any guide so i can integrate sqlite amalgamated  
 c source (sqlite3.c, sqlite3.h) into my D code.
There is a DDBI project that aims to support various databases for D, but its trunk is currently focused on MySQL. OTOH, there is a fork of it that added SQLite support sometime ago. I don't not how stable it is, but you may give it a try: http://github.com/aaronc/ddbi/tree/master
Apr 24 2009
prev sibling parent reply downs <default_357-line yahoo.de> writes:
reimi gibbons wrote:
 im failry new to D, is there any D library project with support for SQLite, if
not is there any guide so i can integrate sqlite amalgamated c source
(sqlite3.c, sqlite3.h) into my D code.
tools.sqlite3 might work for you. Ask me if you have any questions about it. http://dsource.org/projects/scrapple/browser/trunk/tools/tools/sqlite3.d (Check the very end for an example)
Apr 24 2009
next sibling parent reimi gibbons <rei2x hotmail.com> writes:
downs Wrote:

 reimi gibbons wrote:
 im failry new to D, is there any D library project with support for SQLite, if
not is there any guide so i can integrate sqlite amalgamated c source
(sqlite3.c, sqlite3.h) into my D code.
tools.sqlite3 might work for you. Ask me if you have any questions about it. http://dsource.org/projects/scrapple/browser/trunk/tools/tools/sqlite3.d (Check the very end for an example)
thanks for the link. Is it possible to dynamicly load the precompiled binary and use it wihtout header file? since im hoping to use latest sqlite (3.6)
Apr 24 2009
prev sibling parent reply reimi gibbons <rei2x hotmail.com> writes:
downs Wrote:

 reimi gibbons wrote:
 im failry new to D, is there any D library project with support for SQLite, if
not is there any guide so i can integrate sqlite amalgamated c source
(sqlite3.c, sqlite3.h) into my D code.
tools.sqlite3 might work for you. Ask me if you have any questions about it. http://dsource.org/projects/scrapple/browser/trunk/tools/tools/sqlite3.d (Check the very end for an example)
sorry about earlier reply, mistaken your lib to another lib. btw, how do i use this file. with precompiled library (dll/so) or .h/.c ? thanks
Apr 25 2009
parent downs <default_357-line yahoo.de> writes:
reimi gibbons wrote:
 downs Wrote:
 
 reimi gibbons wrote:
 im failry new to D, is there any D library project with support for SQLite, if
not is there any guide so i can integrate sqlite amalgamated c source
(sqlite3.c, sqlite3.h) into my D code.
tools.sqlite3 might work for you. Ask me if you have any questions about it. http://dsource.org/projects/scrapple/browser/trunk/tools/tools/sqlite3.d (Check the very end for an example)
sorry about earlier reply, mistaken your lib to another lib. btw, how do i use this file. with precompiled library (dll/so) or .h/.c ? thanks
Oh, I don't know about that. Sqlite3 is a static library on my Linux. Try to compile the sqlite3.c to .o and just link that in.
Apr 26 2009