Lines Matching full:metadata
29 #include "store/metadata.hpp"
44 /// Fetches an integer column from a statement of the 'metadata' table.
64 throw store::integrity_error(F("The '%s' column in 'metadata' table " in int64_column()
73 /// Constructs a new metadata object.
77 store::metadata::metadata(const int schema_version_, const int64_t timestamp_) : in metadata() function in store::metadata
86 /// \return The timestamp in this metadata entry.
88 store::metadata::timestamp(void) const in timestamp()
96 /// \return The schema version in this metadata entry.
98 store::metadata::schema_version(void) const in schema_version()
104 /// Reads the latest metadata entry from the database.
106 /// \param db The database from which to read the metadata from.
108 /// \return The current metadata of the database. It is not OK for the metadata
112 /// \throw store::integrity_error If the metadata in the database is empty,
114 store::metadata
115 store::metadata::fetch_latest(sqlite::database& db) in fetch_latest()
119 "SELECT schema_version, timestamp FROM metadata " in fetch_latest()
122 throw store::integrity_error("The 'metadata' table is empty"); in fetch_latest()
132 return metadata(schema_version_, timestamp_); in fetch_latest()
134 throw store::integrity_error(F("Invalid metadata schema: %s") % in fetch_latest()