Here is what I have come up with. I attached the self contained SQLite3 console shell to use if you need it.
' #include <sqlite3.h>
extern stdcall lib "sqlite3.dll"
int sqlite3_open(
const char *filename, /* Database filename (UTF-8) */
sqlite3 **ppDb /* OUT: SQLite db handle */
);
int sqlite3_exec(
sqlite3*, /* An open database */
const char *sql, /* SQL to be evaluated */
int (*callback)(void*,int,char**,char**), /* Callback function */
void *, /* 1st argument to callback */
char **errmsg /* Error msg written here */
);
int sqlite3_prepare_v2(
sqlite3 *db, /* Database handle */
const char *zSql, /* SQL statement, UTF-8 encoded */
int nByte, /* Maximum length of zSql in bytes. */
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const char **pzTail /* OUT: Pointer to unused portion of zSql */
);
int sqlite3_step(sqlite3_stmt*); /* Evaluate the statement */
const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol); /* The "result set" interface */
int sqlite3_close(sqlite3 *); /* Destructor for the sqlite3 object */
end extern
[attachment deleted by admin]