FOSSredder 0.5.0
Loading...
Searching...
No Matches
Factory.h File Reference

Declares factories for SQLite storage dependencies and repository bundles. More...

#include <memory>
#include <string>
Include dependency graph for Factory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  core
namespace  core::ports
namespace  core::ports::storage

Functions

std::shared_ptr< SqliteDb > createSqliteDb (const std::string &dbPath)
 Create a SQLite database wrapper for the given path.
std::shared_ptr< core::ports::storage::IRegistry > createSqliteRegistry (const std::string &dbPath)
 Create the SQLite-backed registry for the given path.

Detailed Description

Declares factories for SQLite storage dependencies and repository bundles.

Definition in file Factory.h.

Function Documentation

◆ createSqliteDb()

std::shared_ptr< SqliteDb > createSqliteDb ( const std::string & dbPath)

Create a SQLite database wrapper for the given path.

Parameters
dbPathSQLite database path.
Returns
Shared SQLite database wrapper.

Definition at line 9 of file Factory.cpp.

◆ createSqliteRegistry()

std::shared_ptr< core::ports::storage::IRegistry > createSqliteRegistry ( const std::string & dbPath)

Create the SQLite-backed registry for the given path.

Parameters
dbPathSQLite database path.
Returns
Shared registry implementation.

Definition at line 99 of file SqliteRegistry.cpp.

Here is the caller graph for this function: