Lines Matching refs:db
59 sqlite::database db = sqlite::database::in_memory(); in create_database() local
60 store::detail::initialize(db); in create_database()
61 db.exec("DELETE FROM metadata"); in create_database()
62 return db; in create_database()
77 sqlite::database db = create_database(); in ATF_TEST_CASE_BODY() local
78 db.exec("INSERT INTO metadata (schema_version, timestamp) " in ATF_TEST_CASE_BODY()
80 db.exec("INSERT INTO metadata (schema_version, timestamp) " in ATF_TEST_CASE_BODY()
83 const store::metadata metadata = store::metadata::fetch_latest(db); in ATF_TEST_CASE_BODY()
97 sqlite::database db = create_database(); in ATF_TEST_CASE_BODY() local
99 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY()
106 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY() local
107 db.exec("CREATE TABLE metadata (schema_version INTEGER)"); in ATF_TEST_CASE_BODY()
108 db.exec("INSERT INTO metadata VALUES (3)"); in ATF_TEST_CASE_BODY()
112 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY()
119 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY() local
120 db.exec("CREATE TABLE metadata (timestamp INTEGER)"); in ATF_TEST_CASE_BODY()
121 db.exec("INSERT INTO metadata VALUES (3)"); in ATF_TEST_CASE_BODY()
125 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY()
137 sqlite::database db = create_database(); in ATF_TEST_CASE_BODY() local
138 db.exec("INSERT INTO metadata (schema_version, timestamp) " in ATF_TEST_CASE_BODY()
143 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY()