Qore Programming Language Reference Manual  0.9.4.1
QC_AbstractDatasource.dox.h
1 namespace Qore {
4 namespace SQL {
6 
11 
12 public:
14 
23 abstract nothing beginTransaction();
24 
25 public:
27 
32 abstract nothing commit();
33 
34 public:
36 
43 
44 public:
46 
56 abstract auto exec(string sql, ...);
57 
58 public:
60 
74 abstract auto execRaw(string sql);
75 
76 public:
78 
87 abstract auto getClientVersion();
88 
89 public:
91 
100 abstract hash<auto> getConfigHash();
101 
102 public:
104 
113 abstract string getConfigString();
114 
115 public:
117 
126 abstract *string getDBEncoding();
127 
128 public:
130 
137 abstract *string getDBName();
138 
139 public:
141 
148 abstract string getDriverName();
149 
150 public:
152 
159 abstract *string getHostName();
160 
161 public:
163 
170 abstract *string getOSEncoding();
171 
172 public:
174 
184 auto getOption(string opt);
185 
186 public:
188 
200 hash<auto> getOptionHash();
201 
202 public:
204 
211 abstract *string getPassword();
212 
213 public:
215 
222 abstract *int getPort();
223 
224 public:
226 
235 
236 public:
238 
247 abstract auto getServerVersion();
248 
249 public:
251 
258 abstract *string getUserName();
259 
260 public:
262 
269 abstract bool inTransaction();
270 
271 public:
273 
278 abstract nothing rollback();
279 
280 public:
282 
305 abstract auto select(string sql, ...);
306 
307 public:
309 
328 abstract auto selectRow(string sql, ...);
329 
330 public:
332 
354 abstract auto selectRows(string sql, ...);
355 
356 public:
358 
370 abstract auto vexec(string sql, *softlist<auto> vargs);
371 
372 public:
374 
398 abstract auto vselect(string sql, *softlist<auto> vargs);
399 
400 public:
402 
421 abstract auto vselectRow(string sql, *softlist<auto> vargs);
422 
423 public:
425 
450 abstract auto vselectRows(string sql, *softlist<auto> vargs);
451 };
452 }
453 }
Qore::SQL::AbstractDatasource::rollback
abstract nothing rollback()
Rolls the current transaction back and releases any thread resources associated with the transaction.
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::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::AbstractDatasource::beginTransaction
abstract nothing beginTransaction()
Manually signals the start of transaction management on the AbstractDatasource.
Qore::SQL::AbstractDatasource::getUserName
abstract *string getUserName()
Returns the username parameter as a string or NOTHING if none is set.
Qore::SQL::AbstractDatasource::getHostName
abstract *string getHostName()
Returns the hostname parameter as a string or NOTHING if none is set.
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::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::getPort
abstract *int getPort()
Gets the port number that will be used for the next connection to the server.
Qore::SQL::AbstractDatasource::getOption
auto getOption(string opt)
Returns the current value for the given option.
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::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::getDBEncoding
abstract *string getDBEncoding()
Retrieves the database-specific charset set encoding for the object.
Qore::SQL::AbstractDatasource::getConfigHash
abstract hash< auto > getConfigHash()
Returns a datasource hash describing the configuration of the current object.
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::getSQLStatement
AbstractSQLStatement getSQLStatement()
Returns an AbstractSQLStatement object based on the current database connection object.
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::getOptionHash
hash< auto > getOptionHash()
Returns the valid options for the driver associated with the AbstractDatasource with descriptions and...
Qore::SQL::AbstractDatasource::inTransaction
abstract bool inTransaction()
Returns True if a transaction is currently in progress.
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::getDriverName
abstract string getDriverName()
Returns the name of the driver used for the object.
Qore::SQL::AbstractDatasource::getPassword
abstract *string getPassword()
Returns the password parameter as a string or NOTHING if none is set.
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::AbstractSQLStatement
This class defines an abstract interface for the SQLStatement class.
Definition: QC_AbstractSQLStatement.dox.h:11
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::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::getConfigString
abstract string getConfigString()
Returns a string giving the configuration of the current object in a format that can be parsed by par...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
Qore::SQL::AbstractDatasource::getDBName
abstract *string getDBName()
Returns the database name parameter as a string or NOTHING if none is set.
Qore::SQL::AbstractDatasource::currentThreadInTransaction
bool currentThreadInTransaction()
Should return True if the current thread is in a transaction with this object, must be re-implemented...