QC_AbstractSQLStatement.dox.h
namespace Qore::SQL {
class AbstractSQLStatement : public AbstractIterator {
public:
abstract bool active();
public:
abstract int affectedRows();
public:
abstract nothing beginTransaction();
public:
abstract nothing bind( ...);
public:
abstract nothing bindArgs(softlist vargs);
public:
abstract nothing bindPlaceholders( ...);
public:
abstract nothing bindPlaceholdersArgs(softlist vargs);
public:
abstract nothing bindValues( ...);
public:
abstract nothing bindValuesArgs(softlist vargs);
public:
abstract nothing close();
public:
abstract nothing commit();
public:
abstract bool currentThreadInTransaction();
public:
abstract nothing define();
public:
abstract hash describe();
public:
abstract nothing exec( ...);
public:
abstract nothing execArgs(softlist vargs);
public:
abstract hash fetchColumns(softint rows = -1);
public:
abstract *hash fetchRow();
public:
abstract list fetchRows(softint rows = -1);
public:
abstract hash getOutput();
public:
abstract hash getOutputRows();
public:
abstract *string getSQL();
public:
abstract *hash getValue();
public:
abstract bool next();
public:
abstract nothing prepare(string sql, ...);
public:
abstract nothing prepareRaw(string sql);
public:
abstract nothing rollback();
public:
abstract bool valid();
};
};
Qore::SQL::AbstractSQLStatement
This class defines an abstract interface for the SQLStatement class.
Definition: QC_AbstractSQLStatement.dox.h:9
Qore::SQL::AbstractSQLStatement::bindValuesArgs
abstract nothing bindValuesArgs(softlist vargs)
Binds values to value buffer specifications given as a list in the single argument to the method to v...
Qore::SQL::AbstractSQLStatement::fetchRows
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...
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 describe()
Describes columns in the statement result.
Qore::SQL
Qore::SQL namespace.
Definition: QC_AbstractDatasource.dox.h:2
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::list
list list(...)
Returns an untyped list of the arguments passed at the top level.
Qore::SQL::AbstractSQLStatement::fetchRow
abstract *hash fetchRow()
Retrieves the current row as a hash where the keys are the column names and the values are the column...
Qore::SQL::AbstractSQLStatement::getOutputRows
abstract hash getOutputRows()
Retrieves output buffers as a hash; result sets will be returned as lists of hashes.
Qore::SQL::AbstractSQLStatement::execArgs
abstract nothing execArgs(softlist vargs)
Executes the bound statement with any bound buffers, also optionally allows binding placeholder buffe...
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::getOutput
abstract hash getOutput()
Retrieves output buffers as a hash; result sets will be returned as hashes of lists.
Qore::SQL::AbstractSQLStatement::prepareRaw
abstract nothing prepareRaw(string sql)
Saves an SQL statement that will be prepared and executed later.
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::bindArgs
abstract nothing bindArgs(softlist vargs)
Binds placeholder buffer specifications and values given as a list in the single argument to the meth...
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::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::getValue
abstract *hash getValue()
Retrieves the current row as a hash where the keys are the column names and the values are the column...
Qore::SQL::AbstractSQLStatement::bindPlaceholdersArgs
abstract nothing bindPlaceholdersArgs(softlist 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::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::SQL::AbstractSQLStatement::fetchColumns
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...
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::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...