Qore Programming Language Reference Manual  0.8.13.4
QC_AbstractDatasource.dox.h
1 namespace Qore::SQL {
4 
9 
10 public:
12 
21 abstract nothing beginTransaction();
22 
23 public:
25 
30 abstract nothing commit();
31 
32 public:
34 
41 
42 public:
44 
54 abstract auto exec(string sql, ...);
55 
56 public:
58 
72 abstract auto execRaw(string sql);
73 
74 public:
76 
85 abstract auto getClientVersion();
86 
87 public:
89 
98 abstract hash getConfigHash();
99 
100 public:
102 
111 abstract string getConfigString();
112 
113 public:
115 
124 abstract string getDBEncoding();
125 
126 public:
128 
135 abstract *string getDBName();
136 
137 public:
139 
146 abstract string getDriverName();
147 
148 public:
150 
157 abstract *string getHostName();
158 
159 public:
161 
168 abstract *string getOSEncoding();
169 
170 public:
172 
179 abstract *string getPassword();
180 
181 public:
183 
190 abstract *int getPort();
191 
192 public:
194 
203 abstract auto getServerVersion();
204 
205 public:
207 
214 abstract *string getUserName();
215 
216 public:
218 
225 abstract bool inTransaction();
226 
227 public:
229 
234 abstract nothing rollback();
235 
236 public:
238 
261 abstract auto select(string sql, ...);
262 
263 public:
265 
284 abstract auto selectRow(string sql, ...);
285 
286 public:
288 
310 abstract auto selectRows(string sql, ...);
311 
312 public:
314 
326 abstract auto vexec(string sql, *softlist vargs);
327 
328 public:
330 
354 abstract auto vselect(string sql, *softlist vargs);
355 
356 public:
358 
377 abstract auto vselectRow(string sql, *softlist vargs);
378 
379 public:
381 
406 abstract auto vselectRows(string sql, *softlist vargs);
407 };
408 };
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...
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 auto selectRow(string sql,...)
Executes an SQL select statement on the server and returns the first row as a hash (the column values...
abstract nothing beginTransaction()
Manually signals the start of transaction management on the AbstractDatasource.
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 namespace.
Definition: QC_AbstractDatasource.dox.h:2
abstract auto getClientVersion()
Retrieves the driver-specific client library version information.
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)
bool currentThreadInTransaction()
Should return True if the current thread is in a transaction with this object, must be re-implemented...
This class defines an abstract interface for database access, inherited by both the Datasource and Da...
Definition: QC_AbstractDatasource.dox.h:8
abstract nothing commit()
Commits the current transaction and releases any thread resources associated with the transaction...
abstract auto selectRows(string sql,...)
Executes an SQL select statement on the server and returns the result as a list (rows) of hashes (the...
abstract *string getUserName()
Returns the username parameter as a string or NOTHING if none is set.
abstract auto exec(string sql,...)
Executes an SQL command on the server and returns either the integer row count (for example...
abstract *int getPort()
Gets the port number that will be used for the next connection to the server.
abstract *string getHostName()
Returns the hostname parameter as a string or NOTHING if none is set.
abstract auto getServerVersion()
Returns the driver-specific server version data for the current connection.
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 ...
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 auto vselect(string sql, *softlist vargs)
Executes a select statement on the server and returns the results in a hash (column names) of lists (...
abstract auto vexec(string sql, *softlist vargs)
Executes an SQL command on the server and returns either the integer row count (for example...
hash hash(object obj)
Returns a hash of an object's members.
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.