Audacity 3.2.0
|
A class representing a context of a run operation. More...
#include <Statement.h>
Public Member Functions | |
RunContext (const RunContext &)=delete | |
RunContext (RunContext &&) noexcept | |
RunContext & | operator= (const RunContext &)=delete |
RunContext & | operator= (RunContext &&) noexcept |
RunContext & | Bind (int index, const void *data, int64_t size, bool makeCopy=true) |
RunContext & | Bind (int index, const std::string &value, bool makeCopy=true) |
RunContext & | Bind (int index, std::string_view value, bool makeCopy=true) |
RunContext & | Bind (int index, const char *value, bool makeCopy=true) |
RunContext & | Bind (int index, bool value) |
RunContext & | Bind (int index, int value) |
RunContext & | Bind (int index, long value) |
RunContext & | Bind (int index, long long value) |
RunContext & | Bind (int index, std::size_t value) |
RunContext & | Bind (int index, float value) |
RunContext & | Bind (int index, double value) |
RunContext & | Bind (int index, std::nullptr_t) |
RunContext & | BindZeroBlob (int index, int64_t size) |
template<typename T > | |
RunContext & | Bind (const std::string &name, const T &value) |
template<typename T > | |
RunContext & | Bind (const std::string &name, const T &value, bool make_copy) |
template<typename... Args> | |
RunContext & | BindAll (Args &&... args) |
int | GetParameterIndex (const std::string &name) const noexcept |
RunResult | Run () |
Private Member Functions | |
RunContext (StatementHandlePtr statement) noexcept | |
template<typename Binder > | |
RunContext & | DoBind (Binder binder) |
Private Attributes | |
StatementHandlePtr | mStatement {} |
std::vector< Error > | mErrors {} |
bool | mNeedsReset { false } |
Friends | |
class | Statement |
A class representing a context of a run operation.
Indices are 1-based
Definition at line 132 of file Statement.h.
|
explicitprivatenoexcept |
Definition at line 62 of file Statement.cpp.
|
delete |
|
noexcept |
Definition at line 67 of file Statement.cpp.
|
inline |
Definition at line 162 of file Statement.h.
References name.
|
inline |
Definition at line 168 of file Statement.h.
References name.
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
bool | value | ||
) |
Definition at line 137 of file Statement.cpp.
References Bind().
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
const char * | value, | ||
bool | makeCopy = true |
||
) |
Definition at line 131 of file Statement.cpp.
References Bind().
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
const std::string & | value, | ||
bool | makeCopy = true |
||
) |
Definition at line 107 of file Statement.cpp.
References Bind().
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
const void * | data, | ||
int64_t | size, | ||
bool | makeCopy = true |
||
) |
Definition at line 91 of file Statement.cpp.
References BindZeroBlob(), DoBind(), mStatement, and size.
Referenced by Bind().
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
double | value | ||
) |
Definition at line 172 of file Statement.cpp.
References DoBind(), and mStatement.
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
float | value | ||
) |
Definition at line 166 of file Statement.cpp.
References Bind().
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
int | value | ||
) |
Definition at line 143 of file Statement.cpp.
References Bind().
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
long long | value | ||
) |
Definition at line 155 of file Statement.cpp.
References DoBind(), and mStatement.
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
long | value | ||
) |
Definition at line 149 of file Statement.cpp.
References Bind().
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
std::nullptr_t | |||
) |
Definition at line 178 of file Statement.cpp.
References DoBind(), and mStatement.
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
std::size_t | value | ||
) |
Definition at line 160 of file Statement.cpp.
RunContext & audacity::sqlite::RunContext::Bind | ( | int | index, |
std::string_view | value, | ||
bool | makeCopy = true |
||
) |
Definition at line 113 of file Statement.cpp.
References DoBind(), mNeedsReset, and mStatement.
|
inline |
Definition at line 173 of file Statement.h.
Referenced by audacity::sqlite::Statement::Prepare().
RunContext & audacity::sqlite::RunContext::BindZeroBlob | ( | int | index, |
int64_t | size | ||
) |
Definition at line 184 of file Statement.cpp.
References DoBind(), mStatement, and size.
Referenced by Bind().
|
private |
Definition at line 81 of file Statement.cpp.
References mErrors, and mStatement.
Referenced by Bind(), and BindZeroBlob().
|
noexcept |
|
delete |
|
noexcept |
Definition at line 72 of file Statement.cpp.
References anonymous_namespace{NoteTrack.cpp}::swap().
RunResult audacity::sqlite::RunContext::Run | ( | ) |
Definition at line 197 of file Statement.cpp.
References mErrors, mNeedsReset, and mStatement.
|
friend |
Definition at line 134 of file Statement.h.
|
private |
Definition at line 188 of file Statement.h.
|
private |
Definition at line 189 of file Statement.h.
|
private |
Definition at line 187 of file Statement.h.
Referenced by Bind(), BindZeroBlob(), DoBind(), and Run().