Loading...
Searching...
No Matches
QC_AbstractSQLStatement.dox.h
namespace Qore {
namespace 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<auto> vargs);
public:
abstract nothing bindPlaceholders( ...);
public:
abstract nothing bindPlaceholdersArgs(softlist<auto> vargs);
public:
abstract nothing bindValues( ...);
public:
abstract nothing bindValuesArgs(softlist<auto> vargs);
public:
abstract nothing close();
public:
abstract nothing commit();
public:
abstract bool currentThreadInTransaction();
public:
abstract nothing define();
public:
abstract hash<auto> describe();
public:
abstract nothing exec( ...);
public:
abstract nothing execArgs(softlist<auto> vargs);
public:
abstract hash<auto> fetchColumns(softint rows = -1);
public:
abstract *hash<auto> fetchRow();
public:
abstract list<auto> fetchRows(softint rows = -1);
public:
abstract hash<auto> getOutput();
public:
abstract hash<auto> getOutputRows();
public:
abstract *string getSQL();
public:
abstract *hash<auto> getValue();
public:
abstract auto memberGate(string member);
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::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
Qore::SQL::AbstractSQLStatement
This class defines an abstract interface for the SQLStatement class.
Definition: QC_AbstractSQLStatement.dox.h:11
Qore::SQL::AbstractSQLStatement::bindPlaceholders
abstract nothing bindPlaceholders(...)
Binds placeholder buffer specifications to buffers defined in AbstractSQLStatement::prepare()
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::describe
abstract hash< auto > describe()
Describes columns in the statement result.
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::next
abstract bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
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::prepare
abstract nothing prepare(string sql,...)
Saves an SQL statement that will be prepared and executed later, along with optional arguments.
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::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::bind
abstract nothing bind(...)
Binds placeholder buffer specifications and values to buffers defined in AbstractSQLStatement::prepar...
Qore::SQL::AbstractSQLStatement::memberGate
abstract auto memberGate(string member)
Returns the value of the given column for the current row.
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::define
abstract nothing define()
Performs an explicit define operation on the SQLStatement.
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::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::getSQL
abstract *string getSQL()
Returns the current SQL string set with the call to AbstractSQLStatement::prepare() or AbstractSQLSta...
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::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::execArgs
abstract nothing execArgs(softlist< auto > vargs)
Executes the bound statement with any bound buffers, also optionally allows binding placeholder buffe...
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::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::rollback
abstract nothing rollback()
Closes the SQLStatement, performs a transaction rollback, and releases the connection or the transact...
Qore::SQL::AbstractSQLStatement::bindValues
abstract nothing bindValues(...)
Binds values to value buffer specifications to buffers defined in AbstractSQLStatement::prepare()
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::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::affectedRows
abstract int affectedRows()
Returns the number of rows affected by the last call to AbstractSQLStatement::exec()
Qore::SQL::AbstractSQLStatement::currentThreadInTransaction
abstract bool currentThreadInTransaction()
Returns True if the current thread is in a transaction (i.e. holds the transaction lock),...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3