|
| Connection (sqlite3 *db, const std::string &dbName) |
|
std::shared_ptr< api::DatabaseStatement > | prepareStatement (const std::string &query, bool repeatable) override |
|
void | begin () override |
|
void | rollback () override |
|
void | commit () override |
|
void | close () override |
|
std::shared_ptr< api::DatabaseBlob > | newBlob () override |
|
void | check_sqlite_err (sqlite3 *db, int result, const std::string &errorMessage) |
|
void | changePassword (const std::string &oldPassword, const std::string &newPassword) |
|
void | setPassword (const std::string &password) |
|
◆ begin()
void Connection::begin |
( |
| ) |
|
|
inlineoverridevirtual |
◆ close()
void Connection::close |
( |
| ) |
|
|
inlineoverridevirtual |
◆ commit()
void Connection::commit |
( |
| ) |
|
|
inlineoverridevirtual |
◆ newBlob()
◆ prepareStatement()
std::shared_ptr<api::DatabaseStatement> Connection::prepareStatement |
( |
const std::string & |
query, |
|
|
bool |
repeatable |
|
) |
| |
|
inlineoverridevirtual |
Prepare a statement object using the given SQL query. The statement object will then be responsible of executing the query and handle results. Statement objects may be reused over time if their repeatable
flag is set to true.
- Parameters
-
query | A SQL query to execute (e.g. "SELECT * FROM users WHERE name = 'Joe'") |
repeatable | A flag to indicate whether or not the statement is repeatable |
Implements ledger::core::api::DatabaseConnection.
◆ rollback()
void Connection::rollback |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file:
- test/database/MemoryDatabaseProxy.cpp