QC_AbstractDatasource.dox.h
namespace Qore::SQL {
class AbstractDatasource {
public:
abstract nothing beginTransaction();
public:
abstract nothing commit();
public:
bool currentThreadInTransaction();
public:
abstract auto exec(string sql, ...);
public:
abstract auto execRaw(string sql);
public:
abstract auto getClientVersion();
public:
abstract hash getConfigHash();
public:
abstract string getConfigString();
public:
abstract string getDBEncoding();
public:
abstract *string getDBName();
public:
abstract string getDriverName();
public:
abstract *string getHostName();
public:
abstract *string getOSEncoding();
public:
abstract *string getPassword();
public:
abstract *int getPort();
public:
abstract auto getServerVersion();
public:
abstract *string getUserName();
public:
abstract bool inTransaction();
public:
abstract nothing rollback();
public:
abstract auto select(string sql, ...);
public:
abstract auto selectRow(string sql, ...);
public:
abstract auto selectRows(string sql, ...);
public:
abstract auto vexec(string sql, *softlist vargs);
public:
abstract auto vselect(string sql, *softlist vargs);
public:
abstract auto vselectRow(string sql, *softlist vargs);
public:
abstract auto vselectRows(string sql, *softlist vargs);
};
};
Qore::SQL::AbstractDatasource::vselectRow
abstract auto vselectRow(string sql, *softlist vargs)
Executes a select statement on the server and returns the first row as a hash (column names and value...
Qore::SQL::AbstractDatasource::inTransaction
abstract bool inTransaction()
Returns True if a transaction is currently in progress.
Qore::SQL::AbstractDatasource::rollback
abstract nothing rollback()
Rolls the current transaction back and releases any thread resources associated with the transaction...
Qore::SQL::AbstractDatasource::getOSEncoding
abstract *string getOSEncoding()
Returns the Qore character encoding name for the object as a string or NOTHING if none is set...
Qore::SQL::AbstractDatasource::getConfigString
abstract string getConfigString()
Returns a string giving the configuration of the current object in a format that can be parsed by par...
Qore::SQL::AbstractDatasource::getConfigHash
abstract hash getConfigHash()
Returns a datasource hash describing the configuration of the current object.
Qore::SQL::AbstractDatasource::selectRow
abstract auto selectRow(string sql,...)
Executes an SQL select statement on the server and returns the first row as a hash (the column values...
Qore::SQL::AbstractDatasource::beginTransaction
abstract nothing beginTransaction()
Manually signals the start of transaction management on the AbstractDatasource.
Qore::SQL::AbstractDatasource::select
abstract auto select(string sql,...)
Executes an SQL select statement on the server and (normally) returns the result as a hash (column na...
Qore::SQL
Qore::SQL namespace.
Definition: QC_AbstractDatasource.dox.h:2
Qore::SQL::AbstractDatasource::getClientVersion
abstract auto getClientVersion()
Retrieves the driver-specific client library version information.
Qore::SQL::AbstractDatasource::execRaw
abstract auto execRaw(string sql)
Executes an SQL command on the server and returns either the row count (for example, for updates and inserts) or the data retrieved (for example, if a stored procedure is executed that returns values)
Qore::SQL::AbstractDatasource::currentThreadInTransaction
bool currentThreadInTransaction()
Should return True if the current thread is in a transaction with this object, must be re-implemented...
Qore::SQL::AbstractDatasource
This class defines an abstract interface for database access, inherited by both the Datasource and Da...
Definition: QC_AbstractDatasource.dox.h:8
Qore::SQL::AbstractDatasource::commit
abstract nothing commit()
Commits the current transaction and releases any thread resources associated with the transaction...
Qore::SQL::AbstractDatasource::selectRows
abstract auto selectRows(string sql,...)
Executes an SQL select statement on the server and returns the result as a list (rows) of hashes (the...
Qore::SQL::AbstractDatasource::getUserName
abstract *string getUserName()
Returns the username parameter as a string or NOTHING if none is set.
Qore::SQL::AbstractDatasource::exec
abstract auto exec(string sql,...)
Executes an SQL command on the server and returns either the integer row count (for example...
Qore::SQL::AbstractDatasource::getPort
abstract *int getPort()
Gets the port number that will be used for the next connection to the server.
Qore::SQL::AbstractDatasource::getHostName
abstract *string getHostName()
Returns the hostname parameter as a string or NOTHING if none is set.
Qore::SQL::AbstractDatasource::getServerVersion
abstract auto getServerVersion()
Returns the driver-specific server version data for the current connection.
Qore::SQL::AbstractDatasource::vselectRows
abstract auto vselectRows(string sql, *softlist vargs)
Executes a select statement on the server and returns the results in a list (rows) of hashes (column ...
Qore::SQL::AbstractDatasource::getPassword
abstract *string getPassword()
Returns the password parameter as a string or NOTHING if none is set.
Qore::SQL::AbstractDatasource::getDriverName
abstract string getDriverName()
Returns the name of the driver used for the object.
Qore::SQL::AbstractDatasource::vselect
abstract auto vselect(string sql, *softlist vargs)
Executes a select statement on the server and returns the results in a hash (column names) of lists (...
Qore::SQL::AbstractDatasource::vexec
abstract auto vexec(string sql, *softlist vargs)
Executes an SQL command on the server and returns either the integer row count (for example...
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::SQL::AbstractDatasource::getDBEncoding
abstract string getDBEncoding()
Retrieves the database-specific charset set encoding for the object.
Qore::SQL::AbstractDatasource::getDBName
abstract *string getDBName()
Returns the database name parameter as a string or NOTHING if none is set.