|
| UT_SqlStatement (const UT_SqlDatabase &con, const UT_StringRef &sql) |
|
| UT_SqlStatement (const UT_SqlDatabase &con) |
|
| UT_SqlStatement (const UT_SqlBaseDriver &driver, const UT_StringRef &sql) |
|
| UT_SqlStatement (const UT_SqlBaseDriver &driver) |
|
| UT_SqlStatement (const UT_SharedPtr< UT_SqlStatementImpl > &impl) |
|
| ~UT_SqlStatement () |
|
| UT_NON_COPYABLE (UT_SqlStatement) |
|
void | reset (bool clear_bindings=false) |
|
NO_DISCARD int | columnAsInt (int idx) const |
|
NO_DISCARD bool | columnAsBool (int idx) const |
|
NO_DISCARD int64 | columnAsInt64 (int idx) const |
|
NO_DISCARD UT_StringHolder | columnAsStr (int idx) const |
|
NO_DISCARD double | columnAsDouble (int idx) const |
|
NO_DISCARD UT_IntArray | columnAsIntArray (int idx) const |
|
NO_DISCARD UT_Int64Array | columnAsInt64Array (int idx) const |
|
NO_DISCARD UT_DateTimeField | columnAsDate (int idx) const |
|
NO_DISCARD const void * | columnAsBlob (int idx, int &size) const |
|
NO_DISCARD Blob | columnAsBlob (int idx) const |
|
NO_DISCARD null_tag_t | columnAsNull (int idx) const |
|
NO_DISCARD UT_StringHolder | columnName (int idx) const |
|
NO_DISCARD int | columnCount () const |
|
NO_DISCARD DataType | columnType (int idx) const |
|
NO_DISCARD int | columnBytes (int idx) const |
|
const char * | sql () const |
|
bool | bind (int idx, null_tag_t) |
|
bool | bind (int idx, const UT_StringRef &value) |
|
bool | bind (int idx, const char *value) |
|
bool | bind (int idx, int value) |
|
bool | bind (int idx, int64 value) |
|
bool | bind (int idx, bool value) |
|
bool | bind (int idx, double value) |
|
bool | bind (int idx, const UT_IntArray &value) |
|
bool | bind (int idx, const UT_Int64Array &value) |
|
bool | bind (int idx, const UT_StringArray &value) |
|
bool | bind (int idx, const void *value, int size) |
|
bool | bind (int idx, Blob blob) |
|
bool | bind (int idx, const UT_DateTimeField &dt) |
|
const UT_StringHolder & | intTypeString () const |
|
const UT_StringHolder & | stringTypeString () const |
|
const UT_StringHolder & | nullTypeString () const |
|
const UT_StringHolder & | realTypeString () const |
|
const UT_StringHolder & | blobTypeString () const |
|
const UT_StringHolder & | dateTimeTypeString () const |
|
const UT_StringHolder & | boolTypeString () const |
|
template<typename T > |
T | get (int idx) const |
|
template<typename... Args> |
bool | bindAll (Args &&...args) |
|
bool | bindNull (int idx) |
|
NO_DISCARD bool | isValid () const |
|
bool | hasRow () |
|
bool | run () |
|
bool | step () |
|
const UT_ErrorCode & | getError () const |
|
bool | prepare (const UT_StringRef &sql, UT_ErrorCode &ec) |
|
bool | prepare (const UT_SqlStatementHandleId &id, const UT_StringRef &sql, UT_ErrorCode &ec) |
|
template<typename... Args> |
UT_SqlResult | execute (const UT_StringRef &sql, Args &&...args) |
| Helper function to create a new statement to run a new sql statement. More...
|
|
template<typename... Args> |
UT_SqlResult | execute (const UT_SqlStatementHandleId &id, const UT_StringRef &sql, Args &&...args) |
| Helper function to create a new statement to run a new sql statement. More...
|
|
template<typename... Args> |
std::optional< std::tuple
< Args...> > | fetchOne (UT_ErrorCode *ec=nullptr) |
|
template<typename... Args> |
UT_Array< std::tuple< Args...> > | fetchAll (UT_ErrorCode *ec=nullptr) |
|
template<typename... Args> |
std::optional< std::tuple
< std::tuple< Args...> > > | as (UT_ErrorCode *ec=nullptr) |
|
NO_DISCARD bool | tableExists (const UT_StringRef &name, UT_ErrorCode *ec=nullptr) const |
|
int | changes () const |
|
template<> |
double | get (int idx) const |
|
template<> |
UT_StringHolder | get (int idx) const |
|
template<> |
int | get (int idx) const |
|
template<> |
int64 | get (int idx) const |
|
template<> |
bool | get (int idx) const |
|
template<> |
UT_DateTimeField | get (int idx) const |
|
template<> |
const void * | get (int idx) const |
|
Definition at line 406 of file UT_SQL.h.