Home
last modified time | relevance | path

Searched refs:zSql (Results 1 – 3 of 3) sorted by relevance

/packages/modules/StatsD/statsd/tests/utils/
DDbUtils_test.cpp85 string zSql = "SELECT * FROM metric_111 ORDER BY elapsedTimestampNs"; in TEST_F() local
86 EXPECT_TRUE(query(key, zSql, rows, columnTypes, columnNames, err)); in TEST_F()
111 string zSql = "SELECT * FROM metric_111 ORDER BY elapsedTimestampNs"; in TEST_F() local
112 EXPECT_TRUE(query(key, zSql, rows, columnTypes, columnNames, err)); in TEST_F()
139 string zSql = "SELECT * FROM metric_n111 ORDER BY elapsedTimestampNs"; in TEST_F() local
140 EXPECT_TRUE(query(key, zSql, rows, columnTypes, columnNames, err)); in TEST_F()
166 string zSql = "SELECT * FROM metric_111 ORDER BY elapsedTimestampNs"; in TEST_F() local
167 EXPECT_TRUE(query(key, zSql, rows, columnTypes, columnNames, err)); in TEST_F()
192 string zSql = "SELECT * FROM metric_111 ORDER BY elapsedTimestampNs"; in TEST_F() local
193 EXPECT_TRUE(query(key, zSql, rows, columnTypes, columnNames, err)); in TEST_F()
[all …]
/packages/modules/StatsD/statsd/src/utils/
DDbUtils.cpp146 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()
[all …]
DDbUtils.h74 bool query(const ConfigKey& key, const string& zSql, vector<vector<string>>& rows,