Lines Matching +full:123 +full:- +full:db
31 #include <atf-c++.hpp>
57 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY() local
59 const store::metadata md = store::detail::initialize(db); in ATF_TEST_CASE_BODY()
67 db.exec("SELECT * FROM metadata"); in ATF_TEST_CASE_BODY()
70 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY()
81 utils::setenv("KYUA_STOREDIR", "/non-existent"); in ATF_TEST_CASE_BODY()
84 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY() local
86 "Cannot read.*'/non-existent/schema_v712.sql'", in ATF_TEST_CASE_BODY()
87 store::detail::initialize(db)); in ATF_TEST_CASE_BODY()
99 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY() local
101 store::detail::initialize(db)); in ATF_TEST_CASE_BODY()
118 store::detail::current_schema_version = 123; in ATF_TEST_CASE_BODY()
133 sqlite::database db = sqlite::database::open( in ATF_TEST_CASE_BODY() local
134 fs::path("test.db"), sqlite::open_readwrite | sqlite::open_create); in ATF_TEST_CASE_BODY()
137 fs::path("test.db")); in ATF_TEST_CASE_BODY()
151 sqlite::database db = sqlite::database::open( in ATF_TEST_CASE_BODY() local
152 fs::path("test.db"), sqlite::open_readwrite | sqlite::open_create); in ATF_TEST_CASE_BODY()
153 store::detail::initialize(db); in ATF_TEST_CASE_BODY()
155 ATF_REQUIRE_THROW_RE(store::error, "test.db already exists", in ATF_TEST_CASE_BODY()
156 store::write_backend::open_rw(fs::path("test.db"))); in ATF_TEST_CASE_BODY()
169 fs::path("test.db")); in ATF_TEST_CASE_BODY()
183 fs::path("test.db")); in ATF_TEST_CASE_BODY()