SQLite interface from newLISP
Posted: Sun Jan 11, 2004 6:56 pm
Repostet from thread newlisp.dll:
I will delete my wrapper-dll from my newLISP extension site.
I aggree with all points. Good example of the new import-feature.Uploaded 'sqlite.lsp' bindings for the SQLite database. Works on Friday's upload of newLISP version 7.4.7, which can import libraries compiled for 'cdecl' calling conventions. Also tested on LINUX and FreeBSD. With this file and the new 'cdecl' parameter in newLISP 'import' you don't need a separate wrapper DLL on Win32.
This library import is also a good demo what to do with things like 'char *** pazValue' or 'char **pzErrmsg'. Nested multiple pointers can all be handled with the right mixture of 'get-integer' and 'get-string'.
SQLite fits very good to newLISP, because it is small and 'in process' so it doesn't need a separate database server running. The generated databases are binary compatible on all platforms. Seems to be the ideal database if MySQL still seems to be too much for the task.
http://newlisp.org/download/development/
and
http://www.sqlite.org
Lutz
I will delete my wrapper-dll from my newLISP extension site.