Thread overview
SQLite with D
Apr 24, 2009
reimi gibbons
Apr 24, 2009
Denis Koroskin
Apr 24, 2009
downs
Apr 25, 2009
reimi gibbons
Apr 26, 2009
reimi gibbons
Apr 26, 2009
downs
April 24, 2009
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.
April 24, 2009
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

April 24, 2009
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)
April 25, 2009
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)

April 26, 2009
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

April 26, 2009
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.