SQLite database handle. More...
#include <sqlite_wrap.hh>
Public Member Functions | |
~Database () | |
PreparedStatementPtr | Prepare (const String &query) |
sqlite3 * | Handle () |
sqlite3_int64 | LastRowID () |
DatabasePtr | Copy (const String &filename) |
Static Public Member Functions | |
static DatabasePtr | Open (const String &database) |
SQLite database handle.
Definition at line 148 of file sqlite_wrap.hh.
~Database | ( | ) |
DatabasePtr Copy | ( | const String & | filename | ) |
clone database
useful for saving an in-memory database to disk
sqlite3* Handle | ( | ) | [inline] |
Get SQLite handle.
Definition at line 163 of file sqlite_wrap.hh.
sqlite3_int64 LastRowID | ( | ) |
static DatabasePtr Open | ( | const String & | database | ) | [static] |
open database
DatabaseError | if the database could not be opened. |
PreparedStatementPtr Prepare | ( | const String & | query | ) |
prepare statement for execution
DatabaseError | if the statement could not be prepared. |