| Qore Programming Language Reference Manual 2.2.0

Loading...
Searching...
No Matches
QC_AbstractDatasource.dox.h
1
2 namespace Qore {
4 namespace SQL {
6
10 class AbstractDatasource {
11
12 public:
14
23abstract nothing beginTransaction();
24
25 public:
27
32abstract nothing commit();
33
34 public:
36
42 bool currentThreadInTransaction();
43
44 public:
46
56abstract auto exec(string sql, ...);
57
58 public:
60
74abstract auto execRaw(string sql);
75
76 public:
78
87abstract auto getClientVersion();
88
89 public:
91
100abstract hash<auto> getConfigHash();
101
102 public:
104
113abstract string getConfigString();
114
115 public:
117
126abstract *string getDBEncoding();
127
128 public:
130
137abstract *string getDBName();
138
139 public:
141
150abstract string getDriverName();
151
152 public:
154
167 string getDriverRealName();
168
169 public:
171
178abstract *string getHostName();
179
180 public:
182
189abstract *string getOSEncoding();
190
191 public:
193
203 auto getOption(string opt);
204
205 public:
207
219 hash<auto> getOptionHash();
220
221 public:
223
230abstract *string getPassword();
231
232 public:
234
241abstract *int getPort();
242
243 public:
245
253 AbstractSQLStatement getSQLStatement();
254
255 public:
257
266abstract auto getServerVersion();
267
268 public:
270
277abstract *string getUserName();
278
279 public:
281
288abstract bool inTransaction();
289
290 public:
292
297abstract nothing rollback();
298
299 public:
301
324abstract auto select(string sql, ...);
325
326 public:
328
347abstract auto selectRow(string sql, ...);
348
349 public:
351
373abstract auto selectRows(string sql, ...);
374
375 public:
377
389abstract auto vexec(string sql, *softlist<auto> vargs);
390
391 public:
393
417abstract auto vselect(string sql, *softlist<auto> vargs);
418
419 public:
421
440abstract auto vselectRow(string sql, *softlist<auto> vargs);
441
442 public:
444
469abstract auto vselectRows(string sql, *softlist<auto> vargs);
470};
471}
472}
Qore::SQL::AbstractDatasource
This class defines an abstract interface for database access, inherited by both the Datasource and Da...
Definition QC_AbstractDatasource.dox.h:10
Qore::SQL::AbstractDatasource::getOption
auto getOption(string opt)
Returns the current value for the given option.
Qore::SQL::AbstractDatasource::getDBName
abstract *string getDBName()
Returns the database name 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::currentThreadInTransaction
bool currentThreadInTransaction()
Should return True if the current thread is in a transaction with this object, must be re-implemented...
Qore::SQL::AbstractDatasource::getHostName
abstract *string getHostName()
Returns the hostname parameter as a string or NOTHING if none is set.
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::getDriverRealName
string getDriverRealName()
Returns the real DB driver name if supported by the driver, otherwise the Qore driver name.
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::AbstractDatasource::getConfigHash
abstract hash< auto > getConfigHash()
Returns a datasource hash describing the configuration of the current object.
Qore::SQL::AbstractDatasource::vexec
abstract auto vexec(string sql, *softlist< auto > vargs)
Executes an SQL command on the server and returns either the integer row count (for example,...
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::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::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::vselectRow
abstract auto vselectRow(string sql, *softlist< auto > vargs)
Executes a select statement on the server and returns the first row as a hash (column names and value...
Qore::SQL::AbstractDatasource::commit
abstract nothing commit()
Commits the current transaction and releases any thread resources associated with the transaction.
Qore::SQL::AbstractDatasource::execRaw
abstract auto execRaw(string sql)
Executes an SQL command on the server and returns either the row count (for example,...
Qore::SQL::AbstractDatasource::getOptionHash
hash< auto > getOptionHash()
Returns the valid options for the driver associated with the AbstractDatasource with descriptions and...
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::beginTransaction
abstract nothing beginTransaction()
Manually signals the start of transaction management on the AbstractDatasource.
Qore::SQL::AbstractDatasource::vselect
abstract auto vselect(string sql, *softlist< auto > vargs)
Executes a select statement on the server and returns the results in a hash (column names) of lists (...
Qore::SQL::AbstractDatasource::getPassword
abstract *string getPassword()
Returns the password parameter as a string or NOTHING if none is set.
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::getServerVersion
abstract auto getServerVersion()
Returns the driver-specific server version data for the current connection.
Qore::SQL::AbstractDatasource::getClientVersion
abstract auto getClientVersion()
Retrieves the driver-specific client library version information.
Qore::SQL::AbstractDatasource::getDBEncoding
abstract *string getDBEncoding()
Retrieves the database-specific charset set encoding for the object.
Qore::SQL::AbstractDatasource::getUserName
abstract *string getUserName()
Returns the username parameter as a string or NOTHING if none is set.
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::getSQLStatement
AbstractSQLStatement getSQLStatement()
Returns an AbstractSQLStatement object based on the current database connection object.
Qore::SQL::AbstractDatasource::vselectRows
abstract auto vselectRows(string sql, *softlist< auto > vargs)
Executes a select statement on the server and returns the results in a list (rows) of hashes (column ...
Qore::SQL::AbstractSQLStatement
This class defines an abstract interface for the SQLStatement class.
Definition QC_AbstractSQLStatement.dox.h:11
Qore::hash
hash< auto > hash(object obj)
Returns a hash of an object's members.
Qore::SQL
SQL namespace.
Definition QC_AbstractDatasource.dox.h:4
Qore
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3