| Qore Programming Language Reference Manual 1.0.8

QC_AbstractSQLStatement.dox.h
1 namespace Qore {
4 namespace SQL {
6
11 class AbstractSQLStatement : public AbstractIterator {
12
13 public:
15
23 abstract bool active();
24
25 public:
27
38 abstract int affectedRows();
39
40 public:
42
47 abstract nothing beginTransaction();
48
49 public:
51
76 abstract nothing bind( ...);
77
78 public:
80
106 abstract nothing bindArgs(softlist<auto> vargs);
107
108 public:
110
134 abstract nothing bindPlaceholders( ...);
135
136 public:
138
163 abstract nothing bindPlaceholdersArgs(softlist<auto> vargs);
164
165 public:
167
192 abstract nothing bindValues( ...);
193
194 public:
196
220 abstract nothing bindValuesArgs(softlist<auto> vargs);
221
222 public:
224
229 abstract nothing close();
230
231 public:
233
240 abstract nothing commit();
241
242 public:
244
251 abstract bool currentThreadInTransaction();
252
253 public:
255
274 abstract nothing define();
275
276 public:
278
285 abstract hash<auto> describe();
286
287 public:
289
315 abstract nothing exec( ...);
316
317 public:
319
346 abstract nothing execArgs(softlist<auto> vargs);
347
348 public:
350
367 abstract hash<auto> fetchColumns(softint rows = -1);
368
369 public:
371
386 abstract *hash<auto> fetchRow();
387
388 public:
390
407 abstract list<auto> fetchRows(softint rows = -1);
408
409 public:
411
422 abstract hash<auto> getOutput();
423
424 public:
426
437 abstract hash<auto> getOutputRows();
438
439 public:
441
448 abstract *string getSQL();
449
450 public:
452
469 abstract *hash<auto> getValue();
470
471 public:
473
488 abstract bool next();
489
490 public:
492
503 abstract nothing prepare(string sql, ...);
504
505 public:
507
518 abstract nothing prepareRaw(string sql);
519
520 public:
522
529 abstract nothing rollback();
530
531 public:
533
541 abstract bool valid();
542 };
543 }
544 }
Qore::SQL::AbstractSQLStatement
This class defines an abstract interface for the SQLStatement class.
Definition: QC_AbstractSQLStatement.dox.h:11
Qore::SQL::AbstractSQLStatement::fetchRow
abstract *hash< auto > fetchRow()
Retrieves the current row as a hash where the keys are the column names and the values are the column...
Qore::SQL::AbstractSQLStatement::fetchRows
abstract list< auto > fetchRows(softint rows=-1)
Retrieves a block of rows as a list of hashes with the maximum number of rows determined by the argum...
Qore::SQL::AbstractSQLStatement::affectedRows
abstract int affectedRows()
Returns the number of rows affected by the last call to AbstractSQLStatement::exec() ...
Qore::SQL::AbstractSQLStatement::describe
abstract hash< auto > describe()
Describes columns in the statement result.
Qore::SQL::AbstractSQLStatement::fetchColumns
abstract hash< auto > fetchColumns(softint rows=-1)
Retrieves a block of rows as a hash of lists with the maximum number of rows determined by the argume...
Qore::SQL::AbstractSQLStatement::execArgs
abstract nothing execArgs(softlist< auto > vargs)
Executes the bound statement with any bound buffers, also optionally allows binding placeholder buffe...
Qore::SQL::AbstractSQLStatement::bindArgs
abstract nothing bindArgs(softlist< auto > vargs)
Binds placeholder buffer specifications and values given as a list in the single argument to the meth...
Qore::SQL::AbstractSQLStatement::beginTransaction
abstract nothing beginTransaction()
Manually starts a transaction and allocates a connection or grabs the transaction lock according to t...
Qore::SQL::AbstractSQLStatement::prepare
abstract nothing prepare(string sql,...)
Saves an SQL statement that will be prepared and executed later, along with optional arguments...
Qore::SQL::AbstractSQLStatement::close
abstract nothing close()
Closes the statement if it is open, however this method does not release the connection or transactio...
Qore::SQL::AbstractSQLStatement::prepareRaw
abstract nothing prepareRaw(string sql)
Saves an SQL statement that will be prepared and executed later.
Qore::SQL::AbstractSQLStatement::getOutput
abstract hash< auto > getOutput()
Retrieves output buffers as a hash; result sets will be returned as hashes of lists.
Qore::SQL::AbstractSQLStatement::exec
abstract nothing exec(...)
Executes the bound statement with any bound buffers, also optionally allows binding placeholder buffe...
Qore::SQL::AbstractSQLStatement::commit
abstract nothing commit()
Commits the transaction, releases the connection or the transaction lock according to the object used...
Qore::SQL::AbstractSQLStatement::bind
abstract nothing bind(...)
Binds placeholder buffer specifications and values to buffers defined in AbstractSQLStatement::prepar...
Qore::SQL::AbstractSQLStatement::define
abstract nothing define()
Performs an explicit define operation on the SQLStatement.
Qore::SQL::AbstractSQLStatement::bindPlaceholders
abstract nothing bindPlaceholders(...)
Binds placeholder buffer specifications to buffers defined in AbstractSQLStatement::prepare() ...
Qore::SQL::AbstractSQLStatement::getValue
abstract *hash< auto > getValue()
Retrieves the current row as a hash where the keys are the column names and the values are the column...
Qore::SQL::AbstractSQLStatement::bindValues
abstract nothing bindValues(...)
Binds values to value buffer specifications to buffers defined in AbstractSQLStatement::prepare() ...
Qore::SQL::AbstractSQLStatement::rollback
abstract nothing rollback()
Closes the SQLStatement, performs a transaction rollback, and releases the connection or the transact...
Qore::SQL::AbstractSQLStatement::bindPlaceholdersArgs
abstract nothing bindPlaceholdersArgs(softlist< auto > vargs)
Binds placeholder buffer specifications given as a list in the single argument to the method to buffe...
Qore::SQL::AbstractSQLStatement::getSQL
abstract *string getSQL()
Returns the current SQL string set with the call to AbstractSQLStatement::prepare() or AbstractSQLSta...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::SQL::AbstractSQLStatement::bindValuesArgs
abstract nothing bindValuesArgs(softlist< auto > vargs)
Binds values to value buffer specifications given as a list in the single argument to the method to v...
Qore::SQL::AbstractSQLStatement::valid
abstract bool valid()
returns True if the object is currently pointing at a valid element, False if not (use when iterating...
Qore::SQL::AbstractSQLStatement::getOutputRows
abstract hash< auto > getOutputRows()
Retrieves output buffers as a hash; result sets will be returned as lists of hashes.
Qore::SQL::AbstractSQLStatement::currentThreadInTransaction
abstract bool currentThreadInTransaction()
Returns True if the current thread is in a transaction (i.e. holds the transaction lock)...
Qore::SQL::AbstractSQLStatement::active
abstract bool active()
Returns True if the object is currently active and has a connection or transaction lock allocated to ...
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
Qore::SQL::AbstractSQLStatement::next
abstract bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...