Home | History | Annotate | Download | only in util

Lines Matching full:dbhandle

35 void ExecOrDie(sqlite3* dbhandle, const char *query) {
37 statement.prepare(dbhandle, query);
39 LOG(FATAL) << query << "\n" << sqlite3_errmsg(dbhandle);
86 static void MakeSigninsTable(sqlite3* const dbhandle) {
90 ExecOrDie(dbhandle,
151 static void MakeCookiesTable(sqlite3* const dbhandle) {
155 ExecOrDie(dbhandle,
161 static void MakeClientIDTable(sqlite3* const dbhandle) {
164 ExecOrDie(dbhandle, "CREATE TABLE client_id (id) ");
167 statement.prepare(dbhandle,
171 LOG(FATAL) << "INSERT INTO client_id\n" << sqlite3_errmsg(dbhandle);
178 ScopedDBHandle dbhandle(this);
188 ExecOrDie(dbhandle.get(), "PRAGMA fullfsync = 1");
189 ExecOrDie(dbhandle.get(), "PRAGMA synchronous = 2");
191 SQLTransaction transaction(dbhandle.get());
194 table_query.prepare(dbhandle.get(),
203 version_query.prepare(dbhandle.get(),
214 MigrateOldVersionsAsNeeded(dbhandle.get(), version);
219 statement.prepare(dbhandle.get(),
230 statement.prepare(dbhandle.get(),
238 statement.prepare(dbhandle.get(),
246 MakeSigninsTable(dbhandle.get());
247 MakeCookiesTable(dbhandle.get());
248 MakeClientIDTable(dbhandle.get());
289 ScopedDBHandle dbhandle(this);
290 SQLTransaction transaction(dbhandle.get());
294 query.prepare(dbhandle.get(),
307 statement.prepare(dbhandle.get(),
312 LOG(FATAL) << sqlite3_errmsg(dbhandle.get());
318 statement.prepare(dbhandle.get(),
324 LOG(FATAL) << sqlite3_errmsg(dbhandle.get());
333 ScopedDBHandle dbhandle(this);
336 query.prepare(dbhandle.get(),
360 ScopedDBHandle dbhandle(this);
361 SQLTransaction transaction(dbhandle.get());
365 statement.prepare(dbhandle.get(),
372 LOG(FATAL) << sqlite3_errmsg(dbhandle.get());
377 statement.prepare(dbhandle.get(),
384 LOG(FATAL) << sqlite3_errmsg(dbhandle.get());
392 ScopedDBHandle dbhandle(this);
396 query.prepare(dbhandle.get(),
430 ScopedDBHandle dbhandle(this);
432 statement.prepare(dbhandle.get(), "SELECT id FROM client_id");
441 ScopedDBHandle dbhandle(this);
442 ExecOrDie(dbhandle.get(), "DELETE FROM cookies");
446 ScopedDBHandle dbhandle(this);
448 query.prepare(dbhandle.get(), "SELECT email FROM cookies");