30 std::ostringstream
sql;
34 sqlite3_stmt* stTable{
nullptr};
35 int rc = sqlite3_prepare_v2(
db,
sql.str().c_str(), -1, &stTable, NULL);
42 sqlite3_stmt* st{
nullptr};
43 rc = sqlite3_prepare_v2(
db,
sql.str().c_str(), -1, &st, NULL);
49 int ctotal = sqlite3_column_count(st);
54 rc = sqlite3_step(st);
56 if(rc == SQLITE_ROW) {
61 for(
int i=0;
i<ctotal; ++
i) {
69 std::string columnName = sqlite3_column_name(st,
i);
70 bool extendDef = (
m_def->find(columnName)==
m_def->end());
72 auto columnType = sqlite3_column_type(st,
i);
79 val = sqlite3_column_int(st,
i);
83 val = sqlite3_column_double(st,
i);
87 val = std::string((
char*)(sqlite3_column_text(st,
i)));
91 val = std::string((
char*)(sqlite3_column_blob(st,
i)));
106 (*m_def)[columnName] = inpType;
112 else if(rc == SQLITE_DONE) {