November 2004
Intermediate to advanced
336 pages
6h 22m
English
This appendix lists the C library functions that can be used to communicate with a SQLite database.
The core interface to the SQLite library is considered to be just three functions that allow you to open and close a database and to execute a query using a user-defined callback function. In this section we'll also look at the error codes returned from the core API.
You can open and close a database as follows:
sqlite *sqlite_open( const char *dbname, int mode, char **errmsg ); void sqlite_close(sqlite *db);
The return value of sqlite_open() and the argument to sqlite_close() is an opaque sqlite data structure.
typedef struct sqlite sqlite;
You can execute ...
Read now
Unlock full access