sqlitewrapped is a C wrapper for the Sqlite database C application programming interface.
The code works for linux/unix, as well as win32. This library supports version 3 of the sqlite database. From version 1.2 the connection pool can be made threadsafe.
#include < stdio.h>
#include < stdlib.h>
#include < sqlite3.h>
#include < string>
Database db( "database_file.db" );
q.execute("delete from user");
q.execute("insert into user values(1,'First Person')");
q.execute("insert into user values(2,'Another Person')");
q.get_result("select num,name from user");
long num = q.getval();
std::string name = q.getstr();
printf("User#%ld: %sn", num, name.c_str() );
What's New in This Release:
· This release adds methods to access values in the result set by column name.