Supports direct reading of internal data of sqlite3_stmt
without additional allocation
Change-Id: I10be27774c11dd8579208bb511a821f36df37f6e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
return text;
}
+ const char* GetCString(int pos) const {
+ sqlite3_stmt* stmt = const_cast<sqlite3_stmt*>(stmt_);
+ return reinterpret_cast<const char*>(sqlite3_column_text(stmt, pos));
+ }
+
AutoDbType Get(int pos) const {
sqlite3_stmt* stmt = const_cast<sqlite3_stmt*>(stmt_);
int type = sqlite3_column_type(stmt, pos);