Thread overview
sqlite3.3.4 header + wrappers
Mar 02, 2006
Lionello Lunesu
Mar 02, 2006
Lionello Lunesu
Mar 02, 2006
Lionello Lunesu
Re: sqlite3.3.4 header + wrappers FIX
Mar 02, 2006
Lionello Lunesu
Mar 02, 2006
clayasaurus
March 02, 2006
Hi..

I hope nobody minds me posting a 20KB attachment, but I don't know where else to put this. It's the latest sqlite3 header ported to D; the COFF import library; a D module with some RAII wrappers (useless now?) and similar wrappers for C++.

The D modules are public domain. If somebody knows of a nice place to host this, let me know, or just move them yourself ; )

L.

Perhaps it's wildly known, put it never hurts to repeat: the COFF import library was created like so:

# lib.exe /def:sqlite3.def
# coffimplib.exe -f sqlite3.lib

(lib.exe is the one from VC, but there must be others too; coffimplib is Walter's (unofficial?) lib converter)



March 02, 2006
Lionello Lunesu wrote:

> I hope nobody minds me posting a 20KB attachment, but I don't know where else to put this. It's the latest sqlite3 header ported to D; the COFF import library; a D module with some RAII wrappers (useless now?) and similar wrappers for C++.

Here is what I got with GDC / Mac:

sqlite3.d:0: warning: pragma(lib) not implemented
ld: Undefined symbols:
_getch

Probably not important, but anyway...


Commenting "din.getch();" out and running it gave:

id      name
1       test
2       blaataap
3       poep
id      name
3       poep
2       blaataap
1       test
Error: 4invalid UTF-8 sequence

Not sure if that's good or bad ? (unittest, perhaps?)

--anders
March 02, 2006
> Error: 4invalid UTF-8 sequence
>
> Not sure if that's good or bad ? (unittest, perhaps?)

It's supposed to stop with an error, to test the SqliteError exception class.

I've piped the output of the exe to a file and noticed 4 '\0' characters. I have no idea where they come from. It should say: "near \"DELIBERATE\": syntax error"  .. The word "near" is replaced by the 4 '\0's ??

L.


March 02, 2006
> Error: 4invalid UTF-8 sequence

Apparently it needs some dup's here and there. Will post a patch soon.

L.


March 02, 2006
Line 61 of sqlite3_oo.d must be:
#  super( std.string.toString(pz).dup ); // must dup




March 02, 2006
Lionello Lunesu wrote:
> Hi..
> 
> I hope nobody minds me posting a 20KB attachment, but I don't know where else to put this. 
> 

www.dsource.org/projects/bindings