|
| UT_SqlDatabase (driver_factory_t factory=UTsqliteFactory) |
|
UT_SqlBaseDriver * | driver () |
|
const UT_SqlBaseDriver * | driver () const |
|
void | setHostName (const UT_StringRef &host) |
|
void | setPort (int port) |
|
void | setUserName (const UT_StringRef &user) |
|
void | setPassword (const UT_StringRef &password) |
|
void | setDatabaseName (const UT_StringRef &db_name) |
|
void | setConnectOptions (const UT_Options &options) |
|
bool | close (UT_ErrorCode *ec=nullptr) |
| Close the sql connection to the db backend. More...
|
|
bool | connect (UT_ErrorCode *ec=nullptr) |
| Create a db connection with a custom db backend. More...
|
|
NO_DISCARD bool | isValid () const |
| Check the underlying connection is valid and usable. More...
|
|
NO_DISCARD bool | isReadOnly (const char *db="main", UT_ErrorCode *ec=nullptr) const |
|
NO_DISCARD UT_SharedPtr
< UT_SqlStatementImpl > | createStatementImpl () |
|
NO_DISCARD UT_SharedPtr
< UT_SqlStatementImpl > | createStatementImpl () const |
|
UT_SharedPtr< UT_SqlStatementImpl > | cachedStatement (const UT_SqlStatementHandleId &id, const UT_StringRef &sql, UT_ErrorCode *ec=nullptr) const |
|
UT_SharedPtr< UT_SqlStatementImpl > | findCachedStatement (const UT_SqlStatementHandleId &id) const |
|
template<typename... Args> |
bool | run (UT_ErrorCode *ec, const UT_StringRef &sql, Args &&...args) |
| Helper function to run an sql statement with provided typed args. More...
|
|
int | exec (const UT_StringRef &sql, UT_ErrorCode *ec=nullptr) const |
| Returns the number of rows modified, inserted or deleted. More...
|
|
NO_DISCARD bool | tableExists (const UT_StringRef &name, UT_ErrorCode *ec=nullptr) const |
| Check if the specified table exists. More...
|
|
NO_DISCARD bool | indexExists (const UT_StringRef &name, UT_ErrorCode *ec=nullptr) const |
|
NO_DISCARD bool | viewExists (const UT_StringRef &name, UT_ErrorCode *ec=nullptr) const |
|
NO_DISCARD bool | columnExists (const UT_StringRef &table_name, const UT_StringRef &column_name, UT_ErrorCode *ec=nullptr) const |
|
NO_DISCARD UT_StringHolder | errorMessage () const |
|
NO_DISCARD int | errorCode () const |
|
NO_DISCARD int | extendedErrorCode () const |
|
bool | startTransaction (UT_ErrorCode *ec=nullptr) |
|
bool | endTransaction (bool commit, UT_ErrorCode *ec=nullptr) |
|
NO_DISCARD UT_StringHolder | getSchema (UT_ErrorCode *ec=nullptr) const |
|
NO_DISCARD void * | nativeAPI () |
|
NO_DISCARD void * | nativeAPI () const |
|
Definition at line 1117 of file UT_SQL.h.