Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
QC_AbstractDatasource.dox.h
1 namespace Qore::SQL {
4
8 class AbstractDatasource {
9
10 public:
12
21 abstract nothing beginTransaction();
22
23 public:
25
30 abstract nothing commit();
31
32 public:
34
44 abstract any exec(string sql, ...);
45
46 public:
48
62 abstract any execRaw(string sql);
63
64 public:
66
75 abstract any getClientVersion();
76
77 public:
79
88 abstract hash getConfigHash();
89
90 public:
92
101 abstract string getConfigString();
102
103 public:
105
114 abstract string getDBEncoding();
115
116 public:
118
125 abstract *string getDBName();
126
127 public:
129
136 abstract string getDriverName();
137
138 public:
140
147 abstract *string getHostName();
148
149 public:
151
158 abstract *string getOSEncoding();
159
160 public:
162
169 abstract *string getPassword();
170
171 public:
173
180 abstract *int getPort();
181
182 public:
184
193 abstract any getServerVersion();
194
195 public:
197
204 abstract *string getUserName();
205
206 public:
208
215 abstract bool inTransaction();
216
217 public:
219
224 abstract nothing rollback();
225
226 public:
228
249 abstract any select(string sql, ...);
250
251 public:
253
272 abstract any selectRow(string sql, ...);
273
274 public:
276
298 abstract any selectRows(string sql, ...);
299
300 public:
302
314 abstract any vexec(string sql, *softlist vargs);
315
316 public:
318
340 abstract any vselect(string sql, *softlist vargs);
341
342 public:
344
363 abstract any vselectRow(string sql, *softlist vargs);
364
365 public:
367
392 abstract any vselectRows(string sql, *softlist vargs);
393 };
394 };
Qore::SQL::AbstractDatasource::getClientVersion
abstract any getClientVersion()
Retrieves the driver-specific client library version information.
Qore::SQL::AbstractDatasource::select
abstract any select(string sql,...)
Executes an SQL select statement on the server and (normally) returns the result as a hash (column na...
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::beginTransaction
abstract nothing beginTransaction()
Manually signals the start of transaction management on the AbstractDatasource.
Qore::SQL::AbstractDatasource::getServerVersion
abstract any getServerVersion()
Returns the driver-specific server version data for the current connection.
Qore::SQL::AbstractDatasource::vselectRows
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 ...
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::vselectRow
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...
Qore::SQL::AbstractDatasource::commit
abstract nothing commit()
Commits the current transaction and releases any thread resources associated with the transaction...
Qore::SQL::AbstractDatasource::getUserName
abstract *string getUserName()
Returns the username 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::selectRows
abstract any 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::getHostName
abstract *string getHostName()
Returns the hostname parameter as a string or NOTHING if none is set.
Qore::SQL::AbstractDatasource::exec
abstract any exec(string sql,...)
Executes an SQL command on the server and returns either the integer row count (for example...
Qore::SQL::AbstractDatasource::vselect
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 (...
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::execRaw
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)
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::SQL::AbstractDatasource::vexec
abstract any vexec(string sql, *softlist vargs)
Executes an SQL command on the server and returns either the integer row count (for example...
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.
Qore::SQL::AbstractDatasource::selectRow
abstract any selectRow(string sql,...)
Executes an SQL select statement on the server and returns the first row as a hash (the column values...