Lines Matching refs:db
23 ASSERT_TRUE(db_.Open(temp_dir_.path().AppendASCII("SQLStatementTest.db")));
30 sql::Connection& db() { return db_; }
43 s.Assign(db().GetUniqueStatement("CREATE TABLE foo (a, b)"));
48 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)"));
49 ASSERT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (3, 12)"));
51 sql::Statement s(db().GetUniqueStatement("SELECT b FROM foo WHERE a=?"));
62 EXPECT_EQ(SQLITE_ROW, db().GetErrorCode());
80 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a INTEGER PRIMARY KEY, b)"));
84 &db(), base::Bind(&sql::CaptureErrorCallback, &error));
89 sql::Statement s(db().GetUniqueStatement("INSERT INTO foo (a) VALUES (?)"));
98 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a INTEGER PRIMARY KEY, b)"));
100 sql::Statement s(db().GetUniqueStatement("INSERT INTO foo (a) VALUES (?)"));
111 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)"));
112 ASSERT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (3, 12)"));
113 ASSERT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (4, 13)"));
115 sql::Statement s(db().GetUniqueStatement(