Lines Matching refs:store
78 sqlite::database db = store::detail::open_and_setup( in get_schema_version()
80 return store::metadata::fetch_latest(db).schema_version(); in get_schema_version()
111 sqlite::database db = store::detail::open_and_setup( in migrate_schema_step()
114 const fs::path migration = store::detail::migration_file(version_from, in migrate_schema_step()
121 throw store::error(F("Cannot read migration file '%s'") % migration); in migrate_schema_step()
134 throw store::error(F("Schema migration failed: %s") % e.what()); in migrate_schema_step()
152 sqlite::database old_db = store::detail::open_and_setup( in chunk_database()
180 const datetime::timestamp start_time = store::column_timestamp( in chunk_database()
184 const fs::path new_file = store::layout::new_db_for_migration( in chunk_database()
195 sqlite::database db = store::detail::open_and_setup( in chunk_database()
197 store::detail::initialize(db); in chunk_database()
224 store::detail::migration_file(const int version_from, const int version_to) in migration_file()
243 store::detail::backup_database(const fs::path& source, const int old_version) in backup_database()
251 throw store::error(e.what()); in backup_database()
267 store::migrate_schema(const utils::fs::path& file) in migrate_schema()