refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-12-03 14:32:28 -06:00
parent cfb7a74841
commit 31e20e9af0
2 changed files with 34 additions and 5 deletions

View File

@ -23,13 +23,11 @@
#define REPERTORY_INCLUDE_DB_META_DB_HPP_
#include "db/i_meta_db.hpp"
#include "db/sqlite_meta_db.hpp"
namespace repertory {
[[nodiscard]] inline auto create_meta_db(const app_config &cfg)
-> std::unique_ptr<i_meta_db> {
return std::make_unique<sqlite_meta_db>(cfg);
}
class app_config;
auto create_meta_db(const app_config &cfg) -> std::unique_ptr<i_meta_db>;
} // namespace repertory
#endif // REPERTORY_INCLUDE_DB_META_DB_HPP_