Qore Programming Language Reference Manual: lib/QC_SQLStatement.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

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

All Classes Namespaces Functions Variables Groups Pages
QC_SQLStatement.dox.h
1 namespace Qore::SQL {
4
60 class SQLStatement : public AbstractIterator {
61
62 public:
64
75 bool active();
76
77 public:
79
90 int affectedRows();
91
92 public:
94
99 nothing beginTransaction();
100
101 public:
103
128 nothing bind( ...);
129
130 public:
132
158 nothing bindArgs(softlist vargs);
159
160 public:
162
186 nothing bindPlaceholders( ...);
187
188 public:
190
215 nothing bindPlaceholdersArgs(softlist vargs);
216
217 public:
219
244 nothing bindValues( ...);
245
246 public:
248
272 nothing bindValuesArgs(softlist vargs);
273
274 public:
276
281 nothing close();
282
283 public:
285
292 nothing commit();
293
294 public:
296
309 constructor(Datasource ds);
310
311 public:
313
326 constructor(DatasourcePool dsp);
327
328 public:
330
332 copy();
333
334 public:
336
355 nothing define();
356
357 public:
359
373 hash describe();
374
375 public:
377
382 destructor();
383
384 public:
386
412 nothing exec( ...);
413
414 public:
416
443 nothing execArgs(softlist vargs);
444
445 public:
447
464 hash fetchColumns(softint rows = -1);
465
466 public:
468
483 *hash fetchRow();
484
485 public:
487
504 list fetchRows(softint rows = -1);
505
506 public:
508
519 hash getOutput();
520
521 public:
523
534 hash getOutputRows();
535
536 public:
538
545 *string getSQL();
546
547 public:
549
568 *hash getValue();
569
570 public:
572
599 any memberGate(string key);
600
601 public:
603
618 bool next();
619
620 public:
622
633 nothing prepare(string sql, ...);
634
635 public:
637
648 nothing prepareRaw(string sql);
649
650 public:
652
659 nothing rollback();
660
661 public:
663
674 bool valid();
675 };
676 };
Qore::SQL::SQLStatement::prepareRaw
nothing prepareRaw(string sql)
Saves an SQL statement that will be prepared and executed later.
Qore::SQL::SQLStatement::bindValues
nothing bindValues(...)
Binds values to value buffer specifications to buffers defined in SQLStatement::prepare() ...
Qore::SQL::SQLStatement::fetchRows
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...
Qore::SQL::SQLStatement::execArgs
nothing execArgs(softlist vargs)
Executes the bound statement with any bound buffers, also optionally allows binding placeholder buffe...
Qore::SQL::SQLStatement::getValue
*hash getValue()
Retrieves the current row as a hash where the keys are the column names and the values are the column...
Qore::SQL::SQLStatement::describe
hash describe()
Describes columns in the statement result.
Qore::SQL::SQLStatement::fetchRow
*hash fetchRow()
Retrieves the current row as a hash where the keys are the column names and the values are the column...
Qore::SQL::SQLStatement::exec
nothing exec(...)
Executes the bound statement with any bound buffers, also optionally allows binding placeholder buffe...
Qore::SQL::SQLStatement::commit
nothing commit()
Commits the transaction, releases the connection or the transaction lock according to the object used...
Qore::SQL::SQLStatement::getOutputRows
hash getOutputRows()
Retrieves output buffers as a hash; result sets will be returned as lists of hashes.
Qore::SQL::SQLStatement::copy
copy()
Throws an exception; objects of this class cannot be copied.
Qore::SQL::SQLStatement::memberGate
any memberGate(string key)
This method allows SQLStatement objects to be dereferenced directly as a hash for the current row bei...
Qore::SQL::DatasourcePool
Provides transparent per-thread, per-transaction datasource connection pooling.
Definition: QC_DatasourcePool.dox.h:34
Qore::SQL::SQLStatement::getOutput
hash getOutput()
Retrieves output buffers as a hash; result sets will be returned as hashes of lists.
Qore::SQL::SQLStatement::affectedRows
int affectedRows()
Returns the number of rows affected by the last call to SQLStatement::exec()
Qore::SQL::SQLStatement::close
nothing close()
Closes the statement if it is open, however this method does not release the connection or transactio...
Qore::SQL::SQLStatement::bindValuesArgs
nothing bindValuesArgs(softlist vargs)
Binds values to value buffer specifications given as a list in the single argument to the method to v...
Qore::list
list list(...)
Returns a list of the arguments passed at the top level.
Qore::SQL::SQLStatement::rollback
nothing rollback()
Closes the SQLStatement, performs a transaction rollback, and releases the connection or the transact...
Qore::SQL::SQLStatement
The SQLStatement class provides the most flexibilty for executing SQL on a database server...
Definition: QC_SQLStatement.dox.h:60
Qore::SQL::SQLStatement::getSQL
*string getSQL()
Returns the current SQL string set with the call to SQLStatement::prepare() or SQLStatement::prepareR...
Qore::SQL::SQLStatement::constructor
constructor(Datasource ds)
Creates the SQLStatement object based on the given Datasource object that provides the connection to ...
Qore::SQL::SQLStatement::beginTransaction
nothing beginTransaction()
Manually starts a transaction and allocates a connection or grabs the transaction lock according to t...
Qore::SQL::SQLStatement::destructor
destructor()
Closes the statement if it is open and destroys the object.
Qore::SQL::SQLStatement::fetchColumns
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...
Qore::SQL::SQLStatement::next
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
Qore::SQL::SQLStatement::bindPlaceholdersArgs
nothing bindPlaceholdersArgs(softlist vargs)
Binds placeholder buffer specifications given as a list in the single argument to the method to buffe...
Qore::SQL::SQLStatement::active
bool active()
Returns True if the object is currently active and has a connection or transaction lock allocated to ...
Qore::SQL::SQLStatement::bindPlaceholders
nothing bindPlaceholders(...)
Binds placeholder buffer specifications to buffers defined in SQLStatement::prepare() ...
Qore::SQL::SQLStatement::prepare
nothing prepare(string sql,...)
Saves an SQL statement that will be prepared and executed later, along with optional arguments...
Qore::SQL::SQLStatement::bindArgs
nothing bindArgs(softlist vargs)
Binds placeholder buffer specifications and values given as a list in the single argument to the meth...
Qore::SQL::SQLStatement::define
nothing define()
Performs an explicit define operation on the SQLStatement.
Qore::SQL::SQLStatement::valid
bool valid()
returns True if the object is currently pointing at a valid element, False if not (use when iterating...
Qore::hash
hash hash(object obj)
Returns a hash of an object's members.
Qore::SQL::Datasource
This class provides the Qore interface to databases.
Definition: QC_Datasource.dox.h:74
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
Qore::SQL::SQLStatement::bind
nothing bind(...)
Binds placeholder buffer specifications and values to buffers defined in SQLStatement::prepare() ...