|
dodo
0.0.1
A C++ library to create containerized Linux services
|
Data Definition Language, SQL that takes no parameters, returns no data such as CREATE TABLE. More...
#include <sqlite.hpp>


Public Member Functions | |
| DDL (const Database &db) | |
| Constructor. More... | |
| virtual | ~DDL () |
| Destructor. More... | |
| void | execute () |
| execute, throws Oops on error. More... | |
| int | execute_r () |
| execute and return result code. More... | |
Public Member Functions inherited from dodo::persist::sqlite::Statement | |
| Statement (const Database &db) | |
| Constructor. More... | |
| virtual | ~Statement () |
| Destructor. More... | |
| void | close () |
| A statement handle can be explicitly closed without deleting the Statement object itself. More... | |
| void | prepare (const std::string &sql) |
| Prepare a SQL statement. More... | |
| void | reset (bool clear=true) |
| Reset a SQL statement for re-execute or even re-prepare. More... | |
Additional Inherited Members | |
Protected Attributes inherited from dodo::persist::sqlite::Statement | |
| sqlite3 * | database_ |
| database handle on which the stmt_ is created. More... | |
| sqlite3_stmt * | stmt_ |
| statement handle. More... | |
Data Definition Language, SQL that takes no parameters, returns no data such as CREATE TABLE.
Definition at line 261 of file sqlite.hpp.
|
inline |
|
inlinevirtual |
| void dodo::persist::sqlite::DDL::execute | ( | ) |
execute, throws Oops on error.
Definition at line 389 of file sqlite.cpp.
References dodo::persist::sqlite::Statement::database_, dodo::persist::sqlite::Statement::stmt_, and throw_Exception.
Referenced by dodo::persist::sqlite::Database::beginExclusiveTransaction(), dodo::persist::sqlite::Database::beginImmediateTransaction(), dodo::persist::sqlite::Database::beginTransaction(), dodo::persist::sqlite::Database::commit(), dodo::persist::sqlite::Database::createSavepoint(), dodo::persist::KVStore::createSchema(), dodo::persist::KVStore::optimize(), dodo::persist::KVStore::prepareSQL(), dodo::persist::sqlite::Database::releaseSavepoint(), dodo::persist::sqlite::Database::rollback(), dodo::persist::sqlite::Database::setUserVersion(), dodo::persist::KVStore::startTransaction(), and dodo::persist::KVStore::vacuum().

| int dodo::persist::sqlite::DDL::execute_r | ( | ) |
execute and return result code.
Definition at line 396 of file sqlite.cpp.
References dodo::persist::sqlite::Statement::stmt_.