A handle to the underlying database connection for an archive.
More...
#include <archive_database.h>
A handle to the underlying database connection for an archive.
Definition at line 23 of file archive_database.h.
◆ ArchiveDatabase()
| impeller::ArchiveDatabase::ArchiveDatabase |
( |
const std::string & |
filename | ) |
|
|
explicit |
Definition at line 55 of file archive_database.cc.
56 : handle_(std::make_unique<Handle>(filename)) {
57 if (!handle_->IsValid()) {
62 begin_transaction_stmt_ = std::unique_ptr<ArchiveStatement>(
63 new ArchiveStatement(handle_->Get(),
"BEGIN TRANSACTION;"));
65 if (!begin_transaction_stmt_->IsValid()) {
69 end_transaction_stmt_ = std::unique_ptr<ArchiveStatement>(
70 new ArchiveStatement(handle_->Get(),
"END TRANSACTION;"));
72 if (!end_transaction_stmt_->IsValid()) {
76 rollback_transaction_stmt_ = std::unique_ptr<ArchiveStatement>(
77 new ArchiveStatement(handle_->Get(),
"ROLLBACK TRANSACTION;"));
79 if (!rollback_transaction_stmt_->IsValid()) {
◆ ~ArchiveDatabase()
| impeller::ArchiveDatabase::~ArchiveDatabase |
( |
| ) |
|
|
default |
◆ CreateTransaction()
| ArchiveTransaction impeller::ArchiveDatabase::CreateTransaction |
( |
int64_t & |
transactionCount | ) |
|
Definition at line 135 of file archive_database.cc.
137 return ArchiveTransaction{transactionCount,
138 *begin_transaction_stmt_,
139 *end_transaction_stmt_,
140 *rollback_transaction_stmt_};
◆ GetLastInsertRowID()
| int64_t impeller::ArchiveDatabase::GetLastInsertRowID |
( |
| ) |
|
◆ GetRegistrationForDefinition()
◆ IsValid()
| bool impeller::ArchiveDatabase::IsValid |
( |
| ) |
const |
◆ ArchiveClassRegistration
The documentation for this class was generated from the following files: