Qore Programming Language Reference Manual  0.8.13.4
QC_AbstractSQLStatement.dox.h
1 namespace Qore::SQL {
4 
10 
11 public:
13 
21 abstract bool active();
22 
23 public:
25 
36 abstract int affectedRows();
37 
38 public:
40 
45 abstract nothing beginTransaction();
46 
47 public:
49 
74 abstract nothing bind( ...);
75 
76 public:
78 
104 abstract nothing bindArgs(softlist vargs);
105 
106 public:
108 
132 abstract nothing bindPlaceholders( ...);
133 
134 public:
136 
161 abstract nothing bindPlaceholdersArgs(softlist vargs);
162 
163 public:
165 
190 abstract nothing bindValues( ...);
191 
192 public:
194 
218 abstract nothing bindValuesArgs(softlist vargs);
219 
220 public:
222 
227 abstract nothing close();
228 
229 public:
231 
238 abstract nothing commit();
239 
240 public:
242 
249 abstract bool currentThreadInTransaction();
250 
251 public:
253 
272 abstract nothing define();
273 
274 public:
276 
283 abstract hash describe();
284 
285 public:
287 
313 abstract nothing exec( ...);
314 
315 public:
317 
344 abstract nothing execArgs(softlist vargs);
345 
346 public:
348 
365 abstract hash fetchColumns(softint rows = -1);
366 
367 public:
369 
384 abstract *hash fetchRow();
385 
386 public:
388 
405 abstract list fetchRows(softint rows = -1);
406 
407 public:
409 
420 abstract hash getOutput();
421 
422 public:
424 
435 abstract hash getOutputRows();
436 
437 public:
439 
446 abstract *string getSQL();
447 
448 public:
450 
467 abstract *hash getValue();
468 
469 public:
471 
486 abstract bool next();
487 
488 public:
490 
501 abstract nothing prepare(string sql, ...);
502 
503 public:
505 
516 abstract nothing prepareRaw(string sql);
517 
518 public:
520 
527 abstract nothing rollback();
528 
529 public:
531 
539 abstract bool valid();
540 };
541 };
This class defines an abstract interface for the SQLStatement class.
Definition: QC_AbstractSQLStatement.dox.h:9
abstract nothing bindValuesArgs(softlist vargs)
Binds values to value buffer specifications given as a list in the single argument to the method to v...
abstract list fetchRows(softint rows=-1)
Retrieves a block of rows as a list of hashes with the maximum number of rows determined by the argum...
abstract int affectedRows()
Returns the number of rows affected by the last call to AbstractSQLStatement::exec() ...
abstract hash describe()
Describes columns in the statement result.
Qore::SQL namespace.
Definition: QC_AbstractDatasource.dox.h:2
abstract nothing beginTransaction()
Manually starts a transaction and allocates a connection or grabs the transaction lock according to t...
abstract nothing prepare(string sql,...)
Saves an SQL statement that will be prepared and executed later, along with optional arguments...
list list(...)
Returns an untyped list of the arguments passed at the top level.
abstract *hash fetchRow()
Retrieves the current row as a hash where the keys are the column names and the values are the column...
abstract hash getOutputRows()
Retrieves output buffers as a hash; result sets will be returned as lists of hashes.
abstract nothing execArgs(softlist vargs)
Executes the bound statement with any bound buffers, also optionally allows binding placeholder buffe...
abstract nothing close()
Closes the statement if it is open, however this method does not release the connection or transactio...
abstract hash getOutput()
Retrieves output buffers as a hash; result sets will be returned as hashes of lists.
abstract nothing prepareRaw(string sql)
Saves an SQL statement that will be prepared and executed later.
abstract nothing exec(...)
Executes the bound statement with any bound buffers, also optionally allows binding placeholder buffe...
abstract nothing commit()
Commits the transaction, releases the connection or the transaction lock according to the object used...
abstract nothing bind(...)
Binds placeholder buffer specifications and values to buffers defined in AbstractSQLStatement::prepar...
abstract nothing bindArgs(softlist vargs)
Binds placeholder buffer specifications and values given as a list in the single argument to the meth...
abstract nothing define()
Performs an explicit define operation on the SQLStatement.
abstract nothing bindPlaceholders(...)
Binds placeholder buffer specifications to buffers defined in AbstractSQLStatement::prepare() ...
abstract nothing bindValues(...)
Binds values to value buffer specifications to buffers defined in AbstractSQLStatement::prepare() ...
abstract nothing rollback()
Closes the SQLStatement, performs a transaction rollback, and releases the connection or the transact...
abstract *hash getValue()
Retrieves the current row as a hash where the keys are the column names and the values are the column...
abstract nothing bindPlaceholdersArgs(softlist vargs)
Binds placeholder buffer specifications given as a list in the single argument to the method to buffe...
abstract *string getSQL()
Returns the current SQL string set with the call to AbstractSQLStatement::prepare() or AbstractSQLSta...
hash hash(object obj)
Returns a hash of an object's members.
abstract hash fetchColumns(softint rows=-1)
Retrieves a block of rows as a hash of lists with the maximum number of rows determined by the argume...
abstract bool valid()
returns True if the object is currently pointing at a valid element, False if not (use when iterating...
abstract bool currentThreadInTransaction()
Returns True if the current thread is in a transaction (i.e. holds the transaction lock)...
abstract bool active()
Returns True if the object is currently active and has a connection or transaction lock allocated to ...
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
abstract bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...