SQLite and SwiftForth

From: Tony Mc <afmcc_at_btinternet.com>
Date: Mon, 08 Oct 2007 19:07:45 +0100

Dear SFTalk,

I was thinking of using the SQLite3 database with SwiftForth, since it
allows SQL databases to be used without the overhead of a
client/server model. Before having a go though, I wonder if anyone
else has done this and would be happy to show a wordlist for using
SQLite3?

At the moment I haven't really got started. The first thing I would
need to do is open a database, so I use the sqlite3_open function from
the sqlite3.dll library:

LIBRARY sqlite3.dll
2 IMPORT: sqlite3_open

The C prototype for sqlite3_open is:
        int sqlite3_open( const char *filename, sqlite3 **ppDb);

and I am not sure what to pass as the second argument since it seems
to involve passing the address of an address of an sqlite3 structure
(in C that would be a declaration sqlite3 *db and pass &db as the
second argument). So, how would I make the call to sqlite3_open in SF?

Thanks in advance,
Tony

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Mon Oct 08 2007 - 11:14:10 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.