A class representing a compiled statement.
More...
#include <Statement.h>
A class representing a compiled statement.
The usage pattern is as follows:
- Create a Statement object using Connection::CreateStatement
- Prepare the statement using Statement::Prepare
- Bind the parameters using RunContext::Bind
- Execute the statement using RunContext::Run
- Iterate over the result set using RunResult::begin and RunResult::end
Definition at line 201 of file Statement.h.
◆ Statement() [1/3]
audacity::sqlite::Statement::Statement |
( |
sqlite3_stmt * |
stmt | ) |
|
|
explicitprivate |
Definition at line 40 of file Statement.cpp.
41 :
mStatement { std::make_shared<StatementHandle>(stmt) }
42{
43}
StatementHandlePtr mStatement
◆ Statement() [2/3]
audacity::sqlite::Statement::Statement |
( |
const Statement & |
| ) |
|
|
delete |
◆ Statement() [3/3]
audacity::sqlite::Statement::Statement |
( |
Statement && |
rhs | ) |
|
|
noexcept |
Definition at line 45 of file Statement.cpp.
46{
47 *this = std::move(rhs);
48}
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Prepare() [1/2]
RunContext & audacity::sqlite::Statement::Prepare |
( |
| ) |
|
|
noexcept |
◆ Prepare() [2/2]
template<typename... Args>
RunContext & audacity::sqlite::Statement::Prepare |
( |
Args &&... |
args | ) |
|
|
inline |
◆ Connection
◆ mRunContext
std::optional<RunContext> audacity::sqlite::Statement::mRunContext {} |
|
private |
◆ mStatement
The documentation for this class was generated from the following files: