19 #ifndef OST_IO_SQLITE_CONV_HH
20 #define OST_IO_SQLITE_CONV_HH
26 namespace ost {
namespace db {
28 inline void SqlConvert(sqlite3_stmt* stmt,
int& value,
int col=0)
30 value=sqlite3_column_int(stmt, col);
35 value=
String(reinterpret_cast<const char*>(sqlite3_column_text(stmt, col)));
38 inline void SqlConvert(sqlite3_stmt* stmt, sqlite3_int64& value,
int col=0)
40 value=sqlite3_column_int64(stmt, col);