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