|
FOSSredder 0.5.0
|
#include <SqlitePropertyRepository.h>


Classes | |
| struct | Impl |
Public Member Functions | |
| SqlitePropertyRepository (const std::string &dbPath) | |
| Create a property repository for the database at the given path. | |
| SqlitePropertyRepository (const std::string &dbPath, std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter) | |
| Create a property repository for the database at the given path. | |
| SqlitePropertyRepository (std::shared_ptr< SqliteDb > db) | |
| Create a property repository using an existing database handle wrapper. | |
| SqlitePropertyRepository (std::shared_ptr< SqliteDb > db, std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter) | |
| Create a property repository using an existing database handle wrapper. | |
| ~SqlitePropertyRepository () override | |
| Destroy the repository. | |
| void | addProperty (const std::shared_ptr< core::domain::Property > &property) override |
| Insert a new property. | |
| std::vector< std::shared_ptr< core::domain::Property > > | getProperties () const override |
| Retrieve all properties. | |
| std::optional< std::shared_ptr< core::domain::Property > > | getPropertyById (const std::string &id) const override |
| Retrieve a property by identifier. | |
| void | removeProperty (const std::string &id) override |
| Remove a property by identifier. | |
| void | updateProperty (const std::shared_ptr< core::domain::Property > &property) override |
| Update an existing property. | |
| void | upsertProperty (const std::shared_ptr< core::domain::Property > &property) override |
| Insert or update a property. | |
| void | clearProperties () override |
| Remove all properties. | |
| Public Member Functions inherited from core::ports::repositories::IPropertyRepository | |
| virtual | ~IPropertyRepository ()=default |
| Destroy the property repository interface. | |
Definition at line 15 of file SqlitePropertyRepository.h.
|
explicit |
Create a property repository for the database at the given path.
| dbPath | SQLite database path. |
Definition at line 161 of file SqlitePropertyRepository.cpp.


| SqlitePropertyRepository::SqlitePropertyRepository | ( | const std::string & | dbPath, |
| std::shared_ptr< core::ports::diagnostics::IErrorReporter > | errorReporter ) |
Create a property repository for the database at the given path.
| dbPath | SQLite database path. |
| errorReporter | Error reporter used by the repository. |
Definition at line 164 of file SqlitePropertyRepository.cpp.

|
explicit |
Create a property repository using an existing database handle wrapper.
| db | Shared SQLite database wrapper. |
Definition at line 170 of file SqlitePropertyRepository.cpp.

| SqlitePropertyRepository::SqlitePropertyRepository | ( | std::shared_ptr< SqliteDb > | db, |
| std::shared_ptr< core::ports::diagnostics::IErrorReporter > | errorReporter ) |
Create a property repository using an existing database handle wrapper.
| db | Shared SQLite database wrapper. |
| errorReporter | Error reporter used by the repository. |
Definition at line 173 of file SqlitePropertyRepository.cpp.
|
overridedefault |
Destroy the repository.
|
overridevirtual |
Insert a new property.
| property | Property to add. |
Implements core::ports::repositories::IPropertyRepository.
Definition at line 196 of file SqlitePropertyRepository.cpp.


|
overridevirtual |
Remove all properties.
Implements core::ports::repositories::IPropertyRepository.
Definition at line 292 of file SqlitePropertyRepository.cpp.
|
overridevirtual |
Retrieve all properties.
Implements core::ports::repositories::IPropertyRepository.
Definition at line 215 of file SqlitePropertyRepository.cpp.

|
overridevirtual |
Retrieve a property by identifier.
| id | Property identifier. |
Implements core::ports::repositories::IPropertyRepository.
Definition at line 233 of file SqlitePropertyRepository.cpp.

|
overridevirtual |
Remove a property by identifier.
| id | Property identifier. |
Implements core::ports::repositories::IPropertyRepository.
Definition at line 251 of file SqlitePropertyRepository.cpp.

|
overridevirtual |
Update an existing property.
| property | Property to update. |
Implements core::ports::repositories::IPropertyRepository.
Definition at line 262 of file SqlitePropertyRepository.cpp.


|
overridevirtual |
Insert or update a property.
| property | Property to upsert. |
Implements core::ports::repositories::IPropertyRepository.
Definition at line 283 of file SqlitePropertyRepository.cpp.
