43 const std::shared_ptr<
51 std::shared_ptr<core::application::importing::draft::StatementDraft>>
60 std::shared_ptr<core::application::importing::draft::StatementDraft>>
74 const std::shared_ptr<
82 const std::shared_ptr<
92 std::unique_ptr<Impl> pimpl_;
Repository port for statement draft persistence operations.
void removeStatementDraft(const std::string &id) override
Remove a statement draft by identifier.
void addStatementDraft(const std::shared_ptr< core::application::importing::draft::StatementDraft > &draft) override
Insert a new statement draft.
void upsertStatementDraft(const std::shared_ptr< core::application::importing::draft::StatementDraft > &draft) override
Insert or update a statement draft.
SqliteStatementDraftRepository(const std::string &dbPath)
Create a statement draft repository for the database at the given path.
std::optional< std::shared_ptr< core::application::importing::draft::StatementDraft > > getStatementDraftById(const std::string &id) const override
Retrieve a statement draft by identifier.
void updateStatementDraft(const std::shared_ptr< core::application::importing::draft::StatementDraft > &draft) override
Update an existing statement draft.
std::vector< std::shared_ptr< core::application::importing::draft::StatementDraft > > getStatementDrafts() const override
Retrieve all statement drafts.
~SqliteStatementDraftRepository() override
Destroy the repository.
void clearStatementDrafts() override
Remove all statement drafts.