Lines Matching full:database

49 #include "utils/sqlite/database.hpp"
70 /// Queries the schema version of the given database.
72 /// \param file The database from which to query the schema version.
78 sqlite::database db = store::detail::open_and_setup( in get_schema_version()
87 /// from the historical database to chunked files. We'd use a more generic
90 /// \param file Database on which to apply the migration step.
91 /// \param version_from Current schema version in the database.
111 sqlite::database db = store::detail::open_and_setup( in migrate_schema_step()
139 /// Given a historical database, chunks it up into results files.
141 /// The given database is DELETED on success given that it will have been
144 /// \param old_file Path to the old database.
152 sqlite::database old_db = store::detail::open_and_setup( in chunk_database()
195 sqlite::database db = store::detail::open_and_setup( in chunk_database()
219 /// \param version_from The version from which the database is being upgraded.
220 /// \param version_to The version to which the database is being upgraded.
231 /// Backs up a database for schema migration purposes.
234 /// file copy. We issue our backup call with the database already open, but
237 /// \param source Location of the database to be backed up.
238 /// \param old_version Version of the database's CURRENT schema, used to
247 LI(F("Backing up database %s to %s") % source % target); in backup_database()
256 /// Migrates the schema of a database to the current version.
259 /// intermediate version between the schema version in the database to the
263 /// \param file The database whose schema to upgrade.
272 throw error(F("Database already at schema version %s; migration not " in migrate_schema()
275 throw error(F("Database at schema version %s, which is newer than the " in migrate_schema()