|
| template<typename T > |
| T | column (sqlite3_stmt *stmt, int index) |
| |
| float | columnFloat (sqlite3_stmt *stmt, int index) |
| |
| std::string | columnText (sqlite3_stmt *stmt, int index) |
| |
| void | bindText (sqlite3_stmt *stmt, int index, const std::string &text) |
| |
| template<typename Read > |
| void | forEach (const DatabaseConnection &db, const char *sql, Read read) |
| |
| template<typename Range , typename Bind > |
| void | insertAll (const DatabaseConnection &db, const char *sql, const Range &items, Bind bind) |
| |
| void | clearTable (const DatabaseConnection &db, const char *table) |
| |
Small helpers for the state tables that are rewritten on every save (DELETE + INSERT inside the caller's transaction).