|
FOSSredder 0.5.0
|
#include <SqliteAnalysisRepository.h>


Classes | |
| struct | Impl |
Public Member Functions | |
| SqliteAnalysisRepository (const std::string &dbPath) | |
| Create an analysis repository for the database at the given path. | |
| SqliteAnalysisRepository (std::shared_ptr< SqliteDb > db) | |
| Create an analysis repository using an existing database handle wrapper. | |
| ~SqliteAnalysisRepository () override | |
| Destroy the repository. | |
| void | addAnalysis (const std::shared_ptr< core::domain::Analysis > &analysis) override |
| Insert a new analysis. | |
| std::vector< std::shared_ptr< core::domain::Analysis > > | getAnalyses () const override |
| Retrieve all analyses. | |
| std::optional< std::shared_ptr< core::domain::Analysis > > | getAnalysisById (const std::string &id) const override |
| Retrieve an analysis by identifier. | |
| void | removeAnalysis (const std::string &id) override |
| Remove an analysis by identifier. | |
| void | updateAnalysis (const std::shared_ptr< core::domain::Analysis > &analysis) override |
| Update an existing analysis. | |
| void | upsertAnalysis (const std::shared_ptr< core::domain::Analysis > &analysis) override |
| Insert or update an analysis. | |
| void | clearAnalyses () override |
| Remove all analyses. | |
| sqlite3 * | sqliteHandle () const noexcept override |
| Return the SQLite handle. | |
| Public Member Functions inherited from core::ports::repositories::IAnalysisRepository | |
| virtual | ~IAnalysisRepository ()=default |
| Destroy the analysis repository interface. | |
| Public Member Functions inherited from ISqlConnectionProvider | |
| virtual | ~ISqlConnectionProvider ()=default |
Definition at line 16 of file SqliteAnalysisRepository.h.
|
explicit |
Create an analysis repository for the database at the given path.
| dbPath | SQLite database path. |
Definition at line 107 of file SqliteAnalysisRepository.cpp.


|
explicit |
Create an analysis repository using an existing database handle wrapper.
| db | Shared SQLite database wrapper. |
Definition at line 110 of file SqliteAnalysisRepository.cpp.
|
overridedefault |
Destroy the repository.
|
overridevirtual |
Insert a new analysis.
| analysis | Analysis to add. |
Implements core::ports::repositories::IAnalysisRepository.
Definition at line 121 of file SqliteAnalysisRepository.cpp.


|
overridevirtual |
Remove all analyses.
Implements core::ports::repositories::IAnalysisRepository.
Definition at line 247 of file SqliteAnalysisRepository.cpp.
|
overridevirtual |
Retrieve all analyses.
Implements core::ports::repositories::IAnalysisRepository.
Definition at line 154 of file SqliteAnalysisRepository.cpp.

|
overridevirtual |
Retrieve an analysis by identifier.
| id | Analysis identifier. |
Implements core::ports::repositories::IAnalysisRepository.
Definition at line 173 of file SqliteAnalysisRepository.cpp.

|
overridevirtual |
Remove an analysis by identifier.
| id | Analysis identifier. |
Implements core::ports::repositories::IAnalysisRepository.
Definition at line 192 of file SqliteAnalysisRepository.cpp.

|
overridevirtualnoexcept |
Return the SQLite handle.
Implements ISqlConnectionProvider.
Definition at line 256 of file SqliteAnalysisRepository.cpp.
|
overridevirtual |
Update an existing analysis.
| analysis | Analysis to update. |
Implements core::ports::repositories::IAnalysisRepository.
Definition at line 203 of file SqliteAnalysisRepository.cpp.


|
overridevirtual |
Insert or update an analysis.
| analysis | Analysis to upsert. |
Implements core::ports::repositories::IAnalysisRepository.
Definition at line 235 of file SqliteAnalysisRepository.cpp.
