Lines Matching refs:zSql
146 string zSql = getCreateSqlString(metricId, event); in createTableIfNeeded() local
147 sqlite3_exec(db, zSql.c_str(), nullptr, nullptr, &error); in createTableIfNeeded()
163 string zSql = StringPrintf("PRAGMA table_info(metric_%s);", reformatMetricId(metricId).c_str()); in isEventCompatible() local
168 if (!query(key, zSql, rows, columnTypes, columnNames, err)) { in isEventCompatible()
197 string zSql = StringPrintf("DROP TABLE metric_%s", reformatMetricId(metricId).c_str()); in deleteTable() local
199 sqlite3_exec(db, zSql.c_str(), nullptr, nullptr, &error); in deleteTable()
314 bool query(const ConfigKey& key, const string& zSql, vector<vector<string>>& rows, in query() argument
324 if (sqlite3_prepare_v2(db, zSql.c_str(), -1, &stmt, nullptr) != SQLITE_OK) { in query()
365 string zSql = StringPrintf("DELETE FROM %s%s WHERE %s <= %lld", TABLE_NAME_PREFIX.c_str(), in flushTtl() local
370 sqlite3_exec(db, zSql.c_str(), nullptr, nullptr, &error); in flushTtl()
385 string zSql = "PRAGMA integrity_check"; in verifyIntegrityAndDeleteIfNecessary() local
388 sqlite3_exec(db, zSql.c_str(), integrityCheckCallback, nullptr, &error); in verifyIntegrityAndDeleteIfNecessary()