1 #ifndef _ots_DatabaseConfigurationInterface_h_
2 #define _ots_DatabaseConfigurationInterface_h_
4 #include "otsdaq/ConfigurationInterface/ConfigurationInterface.h"
20 using table_version_map_t = std::map<std::string ,
TableVersion >;
25 bool IS_FILESYSTEM_DB =
true;
43 std::string
const& filterString =
"")
const override;
44 std::set<TableGroupKey>
getKeys(
const std::string& groupName)
const override;
46 const std::string& groupName)
const noexcept
override;
50 std::string
const& tableGroup,
bool includeMetaDataTable =
false)
const override;
54 std::string
const& tableGroup)
const override;
56 std::pair<std::string, TableVersion> saveCustomJSON(
57 const std::string& JSON,
const std::string& documentNameToSave)
const override;
58 std::string loadCustomJSON(
const std::string& documentNameToLoad,
62 table_version_map_t getCachedTableGroupMembers(std::string
const& tableGroup)
const;
63 void saveTableGroupMemberCache(table_version_map_t
const& memberMap,
64 std::string
const& tableGroup)
const;
void saveTableGroup(table_version_map_t const &memberMap, std::string const &tableGroup) const override
create a new table group from the contents map
TableVersion findLatestVersion(const TableBase *table) const noexcept override
find the latest table version by table type
table_version_map_t getTableGroupMembers(std::string const &tableGroup, bool includeMetaDataTable=false) const override
return the contents of a table group
std::set< std::string > getAllTableGroupNames(std::string const &filterString="") const override
find all table groups in database
std::set< TableGroupKey > getKeys(const std::string &groupName) const override
find all configuration groups in database
std::set< TableVersion > getVersions(const TableBase *table) const noexcept override
find all table versions by table type
std::set< std::string > getAllTableNames(void) const override
returns a list of all table names
void fill(TableBase *table, TableVersion version) const override
read table from database
TableGroupKey findLatestGroupKey(const std::string &groupName) const noexcept override
void saveActiveVersion(const TableBase *table, bool overwrite=false) const override
write table to database