|
FOSSredder 0.5.0
|
#include <SqliteAnnualRepository.h>


Classes | |
| struct | Impl |
Public Member Functions | |
| SqliteAnnualRepository (const std::string &dbPath) | |
| Create an annual repository for the database at the given path. | |
| SqliteAnnualRepository (std::shared_ptr< SqliteDb > db) | |
| Create an annual repository using an existing database handle wrapper. | |
| ~SqliteAnnualRepository () override | |
| Destroy the repository. | |
| void | addAnnual (const std::shared_ptr< core::domain::Annual > &annual) override |
| Insert a new annual entry. | |
| std::vector< std::shared_ptr< core::domain::Annual > > | getAnnuals () const override |
| Retrieve all annual entries. | |
| std::optional< std::shared_ptr< core::domain::Annual > > | getAnnualById (const std::string &id) const override |
| Retrieve an annual entry by identifier. | |
| void | removeAnnual (const std::string &id) override |
| Remove an annual entry by identifier. | |
| void | updateAnnual (const std::shared_ptr< core::domain::Annual > &annual) override |
| Update an existing annual entry. | |
| void | upsertAnnual (const std::shared_ptr< core::domain::Annual > &annual) override |
| Insert or update an annual entry. | |
| void | clearAnnuals () override |
| Remove all annual entries. | |
| sqlite3 * | sqliteHandle () const noexcept override |
| Return the SQLite handle. | |
| Public Member Functions inherited from core::ports::repositories::IAnnualRepository | |
| virtual | ~IAnnualRepository ()=default |
| Destroy the annual repository interface. | |
| Public Member Functions inherited from ISqlConnectionProvider | |
| virtual | ~ISqlConnectionProvider ()=default |
Definition at line 16 of file SqliteAnnualRepository.h.
|
explicit |
Create an annual repository for the database at the given path.
| dbPath | SQLite database path. |
Definition at line 90 of file SqliteAnnualRepository.cpp.


|
explicit |
Create an annual repository using an existing database handle wrapper.
| db | Shared SQLite database wrapper. |
Definition at line 93 of file SqliteAnnualRepository.cpp.
|
overridedefault |
Destroy the repository.
|
overridevirtual |
Insert a new annual entry.
| annual | Annual to add. |
Implements core::ports::repositories::IAnnualRepository.
Definition at line 104 of file SqliteAnnualRepository.cpp.


|
overridevirtual |
Remove all annual entries.
Implements core::ports::repositories::IAnnualRepository.
Definition at line 200 of file SqliteAnnualRepository.cpp.
|
overridevirtual |
Retrieve an annual entry by identifier.
| id | Annual identifier. |
Implements core::ports::repositories::IAnnualRepository.
Definition at line 141 of file SqliteAnnualRepository.cpp.

|
overridevirtual |
Retrieve all annual entries.
Implements core::ports::repositories::IAnnualRepository.
Definition at line 126 of file SqliteAnnualRepository.cpp.

|
overridevirtual |
Remove an annual entry by identifier.
| id | Annual identifier. |
Implements core::ports::repositories::IAnnualRepository.
Definition at line 156 of file SqliteAnnualRepository.cpp.

|
overridevirtualnoexcept |
Return the SQLite handle.
Implements ISqlConnectionProvider.
Definition at line 209 of file SqliteAnnualRepository.cpp.
|
overridevirtual |
Update an existing annual entry.
| annual | Annual to update. |
Implements core::ports::repositories::IAnnualRepository.
Definition at line 167 of file SqliteAnnualRepository.cpp.


|
overridevirtual |
Insert or update an annual entry.
| annual | Annual to upsert. |
Implements core::ports::repositories::IAnnualRepository.
Definition at line 188 of file SqliteAnnualRepository.cpp.
