GnuCash
5.6-150-g038405b370+
|
Encapsulate the connection to the database. More...
#include <gnc-sql-connection.hpp>
Public Member Functions | |
virtual | ~GncSqlConnection ()=default |
Returns NULL if error. | |
virtual GncSqlResultPtr | execute_select_statement (const GncSqlStatementPtr &) noexcept=0 |
virtual int | execute_nonselect_statement (const GncSqlStatementPtr &) noexcept=0 |
Returns false if error. | |
virtual GncSqlStatementPtr | create_statement_from_sql (const std::string &) const noexcept=0 |
virtual bool | does_table_exist (const std::string &) const noexcept=0 |
Returns true if successful. | |
virtual bool | begin_transaction () noexcept=0 |
Returns TRUE if successful, false if error. | |
virtual bool | rollback_transaction () noexcept=0 |
Returns TRUE if successful, FALSE if error. | |
virtual bool | commit_transaction () noexcept=0 |
Returns TRUE if successful, FALSE if error. | |
virtual bool | create_table (const std::string &, const ColVec &) const noexcept=0 |
Returns TRUE if successful, FALSE if error. | |
virtual bool | create_index (const std::string &, const std::string &, const EntryVec &) const noexcept=0 |
Returns TRUE if successful, FALSE if error. | |
virtual bool | add_columns_to_table (const std::string &, const ColVec &) const noexcept=0 |
Returns TRUE if successful, FALSE if error. | |
virtual std::string | quote_string (const std::string &) const noexcept=0 |
virtual int | dberror () const noexcept=0 |
Get the connection error value. More... | |
virtual void | set_error (QofBackendError error, unsigned int repeat, bool retry) noexcept=0 |
virtual bool | verify () noexcept=0 |
virtual bool | retry_connection (const char *msg) noexcept=0 |
Encapsulate the connection to the database.
This is an abstract class; the implementation is database-specific.
Definition at line 58 of file gnc-sql-connection.hpp.
|
pure virtualnoexcept |
Get the connection error value.
If not 0 will normally be meaningless outside of implementation code.
Implemented in GncDbiSqlConnection.