Notation used in Ruby API documentation
Module: QtSql
Description: Binding of QSqlResult
Class hierarchy: QSqlResult
new QSqlResult ptr | new | Creates a new object of this class |
[const] | QSqlResult ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
[const] | variant | handle | Virtual method QVariant QSqlResult::handle() |
void | addBindValue | (variant val, QSql_QFlags_ParamTypeFlag type) | Method void QSqlResult::addBindValue(const QVariant &val, QFlags<QSql::ParamTypeFlag> type) | ||
[const] | int | at | Method int QSqlResult::at() | ||
void | bindValue | (int pos, variant val, QSql_QFlags_ParamTypeFlag type) | Virtual method void QSqlResult::bindValue(int pos, const QVariant &val, QFlags<QSql::ParamTypeFlag> type) | ||
void | bindValue | (string placeholder, variant val, QSql_QFlags_ParamTypeFlag type) | Virtual method void QSqlResult::bindValue(const QString &placeholder, const QVariant &val, QFlags<QSql::ParamTypeFlag> type) | ||
[const] | QSql_QFlags_ParamTypeFlag | bindValueType | (string placeholder) | Method QFlags<QSql::ParamTypeFlag> QSqlResult::bindValueType(const QString &placeholder) | |
[const] | QSql_QFlags_ParamTypeFlag | bindValueType | (int pos) | Method QFlags<QSql::ParamTypeFlag> QSqlResult::bindValueType(int pos) | |
[const] | unsigned int | bindingSyntax | Method QSqlResult::BindingSyntax QSqlResult::bindingSyntax() | ||
[const] | variant | boundValue | (string placeholder) | Method QVariant QSqlResult::boundValue(const QString &placeholder) | |
[const] | variant | boundValue | (int pos) | Method QVariant QSqlResult::boundValue(int pos) | |
[const] | int | boundValueCount | Method int QSqlResult::boundValueCount() | ||
[const] | string | boundValueName | (int pos) | Method QString QSqlResult::boundValueName(int pos) | |
[const] | variant[] | boundValues | Method QVector<QVariant> &QSqlResult::boundValues() | ||
void | clear | Method void QSqlResult::clear() | |||
variant | data | (int i) | Virtual method QVariant QSqlResult::data(int i) | ||
void | detachFromResultSet | Method void QSqlResult::detachFromResultSet() | |||
[const] | const QSqlDriver ptr | driver | Method const QSqlDriver *QSqlResult::driver() | ||
bool | exec | Virtual method bool QSqlResult::exec() | |||
bool | execBatch | (bool arrayBind = false) | Method bool QSqlResult::execBatch(bool arrayBind) | ||
[const] | string | executedQuery | Method QString QSqlResult::executedQuery() | ||
bool | fetch | (int i) | Virtual method bool QSqlResult::fetch(int i) | ||
bool | fetchFirst | Virtual method bool QSqlResult::fetchFirst() | |||
bool | fetchLast | Virtual method bool QSqlResult::fetchLast() | |||
bool | fetchNext | Virtual method bool QSqlResult::fetchNext() | |||
bool | fetchPrevious | Virtual method bool QSqlResult::fetchPrevious() | |||
[const] | bool | hasOutValues | Method bool QSqlResult::hasOutValues() | ||
[const] | bool | isActive | Method bool QSqlResult::isActive() | ||
[const] | bool | isForwardOnly | Method bool QSqlResult::isForwardOnly() | ||
bool | isNull | (int i) | Virtual method bool QSqlResult::isNull(int i) | ||
[const] | bool | isSelect | Method bool QSqlResult::isSelect() | ||
[const] | bool | isValid | Method bool QSqlResult::isValid() | ||
[const] | QSqlError | lastError | Method QSqlError QSqlResult::lastError() | ||
[const] | variant | lastInsertId | Virtual method QVariant QSqlResult::lastInsertId() | ||
[const] | string | lastQuery | Method QString QSqlResult::lastQuery() | ||
bool | nextResult | Method bool QSqlResult::nextResult() | |||
int | numRowsAffected | Virtual method int QSqlResult::numRowsAffected() | |||
[const] | QSql_NumericalPrecisionPolicy | numericalPrecisionPolicy | Method QSql::NumericalPrecisionPolicy QSqlResult::numericalPrecisionPolicy() | ||
bool | prepare | (string query) | Virtual method bool QSqlResult::prepare(const QString &query) | ||
[const] | QSqlRecord | record | Virtual method QSqlRecord QSqlResult::record() | ||
bool | reset | (string sqlquery) | Virtual method bool QSqlResult::reset(const QString &sqlquery) | ||
bool | savePrepare | (string sqlquery) | Virtual method bool QSqlResult::savePrepare(const QString &sqlquery) | ||
void | setActive | (bool a) | Virtual method void QSqlResult::setActive(bool a) | ||
void | setAt | (int at) | Virtual method void QSqlResult::setAt(int at) | ||
void | setForwardOnly | (bool forward) | Virtual method void QSqlResult::setForwardOnly(bool forward) | ||
void | setLastError | (const QSqlError e) | Virtual method void QSqlResult::setLastError(const QSqlError &e) | ||
void | setNumericalPrecisionPolicy | (const QSql_NumericalPrecisionPolicy policy) | Method void QSqlResult::setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy) | ||
void | setQuery | (string query) | Virtual method void QSqlResult::setQuery(const QString &query) | ||
void | setSelect | (bool s) | Virtual method void QSqlResult::setSelect(bool s) | ||
int | size | Virtual method int QSqlResult::size() | |||
void | virtual_hook | (int id, void * data) | Virtual method void QSqlResult::virtual_hook(int id, void *data) |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
_const_cast | Signature: [const] QSqlResult ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
addBindValue | Signature: void addBindValue (variant val, QSql_QFlags_ParamTypeFlag type) Description: Method void QSqlResult::addBindValue(const QVariant &val, QFlags<QSql::ParamTypeFlag> type) This method is protected and can only be called from inside a derived class. |
at | Signature: [const] int at Description: Method int QSqlResult::at() This method is protected and can only be called from inside a derived class. |
bindValue | (1) Signature: void bindValue (int pos, variant val, QSql_QFlags_ParamTypeFlag type) Description: Virtual method void QSqlResult::bindValue(int pos, const QVariant &val, QFlags<QSql::ParamTypeFlag> type) This method can be reimplemented in a derived class. |
(2) Signature: void bindValue (string placeholder, variant val, QSql_QFlags_ParamTypeFlag type) Description: Virtual method void QSqlResult::bindValue(const QString &placeholder, const QVariant &val, QFlags<QSql::ParamTypeFlag> type) This method can be reimplemented in a derived class. | |
bindValueType | (1) Signature: [const] QSql_QFlags_ParamTypeFlag bindValueType (string placeholder) Description: Method QFlags<QSql::ParamTypeFlag> QSqlResult::bindValueType(const QString &placeholder) This method is protected and can only be called from inside a derived class. |
(2) Signature: [const] QSql_QFlags_ParamTypeFlag bindValueType (int pos) Description: Method QFlags<QSql::ParamTypeFlag> QSqlResult::bindValueType(int pos) This method is protected and can only be called from inside a derived class. | |
bindingSyntax | Signature: [const] unsigned int bindingSyntax Description: Method QSqlResult::BindingSyntax QSqlResult::bindingSyntax() This method is protected and can only be called from inside a derived class. |
boundValue | (1) Signature: [const] variant boundValue (string placeholder) Description: Method QVariant QSqlResult::boundValue(const QString &placeholder) This method is protected and can only be called from inside a derived class. |
(2) Signature: [const] variant boundValue (int pos) Description: Method QVariant QSqlResult::boundValue(int pos) This method is protected and can only be called from inside a derived class. | |
boundValueCount | Signature: [const] int boundValueCount Description: Method int QSqlResult::boundValueCount() This method is protected and can only be called from inside a derived class. |
boundValueName | Signature: [const] string boundValueName (int pos) Description: Method QString QSqlResult::boundValueName(int pos) This method is protected and can only be called from inside a derived class. |
boundValues | Signature: [const] variant[] boundValues Description: Method QVector<QVariant> &QSqlResult::boundValues() This method is protected and can only be called from inside a derived class. |
clear | Signature: void clear Description: Method void QSqlResult::clear() This method is protected and can only be called from inside a derived class. |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
data | Signature: variant data (int i) Description: Virtual method QVariant QSqlResult::data(int i) This method can be reimplemented in a derived class. |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
detachFromResultSet | Signature: void detachFromResultSet Description: Method void QSqlResult::detachFromResultSet() This method is protected and can only be called from inside a derived class. |
driver | Signature: [const] const QSqlDriver ptr driver Description: Method const QSqlDriver *QSqlResult::driver() This method is protected and can only be called from inside a derived class. |
exec | Signature: bool exec Description: Virtual method bool QSqlResult::exec() This method can be reimplemented in a derived class. Python specific notes: |
execBatch | Signature: bool execBatch (bool arrayBind = false) Description: Method bool QSqlResult::execBatch(bool arrayBind) This method is protected and can only be called from inside a derived class. |
executedQuery | Signature: [const] string executedQuery Description: Method QString QSqlResult::executedQuery() This method is protected and can only be called from inside a derived class. |
fetch | Signature: bool fetch (int i) Description: Virtual method bool QSqlResult::fetch(int i) This method can be reimplemented in a derived class. |
fetchFirst | Signature: bool fetchFirst Description: Virtual method bool QSqlResult::fetchFirst() This method can be reimplemented in a derived class. |
fetchLast | Signature: bool fetchLast Description: Virtual method bool QSqlResult::fetchLast() This method can be reimplemented in a derived class. |
fetchNext | Signature: bool fetchNext Description: Virtual method bool QSqlResult::fetchNext() This method can be reimplemented in a derived class. |
fetchPrevious | Signature: bool fetchPrevious Description: Virtual method bool QSqlResult::fetchPrevious() This method can be reimplemented in a derived class. |
handle | Signature: [const] variant handle Description: Virtual method QVariant QSqlResult::handle() This method can be reimplemented in a derived class. |
hasOutValues | Signature: [const] bool hasOutValues Description: Method bool QSqlResult::hasOutValues() This method is protected and can only be called from inside a derived class. |
isActive | Signature: [const] bool isActive Description: Method bool QSqlResult::isActive() This method is protected and can only be called from inside a derived class. |
isForwardOnly | Signature: [const] bool isForwardOnly Description: Method bool QSqlResult::isForwardOnly() This method is protected and can only be called from inside a derived class. |
isNull | Signature: bool isNull (int i) Description: Virtual method bool QSqlResult::isNull(int i) This method can be reimplemented in a derived class. |
isSelect | Signature: [const] bool isSelect Description: Method bool QSqlResult::isSelect() This method is protected and can only be called from inside a derived class. |
isValid | Signature: [const] bool isValid Description: Method bool QSqlResult::isValid() This method is protected and can only be called from inside a derived class. |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
lastError | Signature: [const] QSqlError lastError Description: Method QSqlError QSqlResult::lastError() This method is protected and can only be called from inside a derived class. |
lastInsertId | Signature: [const] variant lastInsertId Description: Virtual method QVariant QSqlResult::lastInsertId() This method can be reimplemented in a derived class. |
lastQuery | Signature: [const] string lastQuery Description: Method QString QSqlResult::lastQuery() This method is protected and can only be called from inside a derived class. |
new | Signature: [static] new QSqlResult ptr new Description: Creates a new object of this class Python specific notes: |
nextResult | Signature: bool nextResult Description: Method bool QSqlResult::nextResult() This method is protected and can only be called from inside a derived class. |
numRowsAffected | Signature: int numRowsAffected Description: Virtual method int QSqlResult::numRowsAffected() This method can be reimplemented in a derived class. |
numericalPrecisionPolicy | Signature: [const] QSql_NumericalPrecisionPolicy numericalPrecisionPolicy Description: Method QSql::NumericalPrecisionPolicy QSqlResult::numericalPrecisionPolicy() This method is protected and can only be called from inside a derived class. |
prepare | Signature: bool prepare (string query) Description: Virtual method bool QSqlResult::prepare(const QString &query) This method can be reimplemented in a derived class. |
record | Signature: [const] QSqlRecord record Description: Virtual method QSqlRecord QSqlResult::record() This method can be reimplemented in a derived class. |
reset | Signature: bool reset (string sqlquery) Description: Virtual method bool QSqlResult::reset(const QString &sqlquery) This method can be reimplemented in a derived class. |
savePrepare | Signature: bool savePrepare (string sqlquery) Description: Virtual method bool QSqlResult::savePrepare(const QString &sqlquery) This method can be reimplemented in a derived class. |
setActive | Signature: void setActive (bool a) Description: Virtual method void QSqlResult::setActive(bool a) This method can be reimplemented in a derived class. |
setAt | Signature: void setAt (int at) Description: Virtual method void QSqlResult::setAt(int at) This method can be reimplemented in a derived class. |
setForwardOnly | Signature: void setForwardOnly (bool forward) Description: Virtual method void QSqlResult::setForwardOnly(bool forward) This method can be reimplemented in a derived class. |
setLastError | Signature: void setLastError (const QSqlError e) Description: Virtual method void QSqlResult::setLastError(const QSqlError &e) This method can be reimplemented in a derived class. |
setNumericalPrecisionPolicy | Signature: void setNumericalPrecisionPolicy (const QSql_NumericalPrecisionPolicy policy) Description: Method void QSqlResult::setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy) This method is protected and can only be called from inside a derived class. |
setQuery | Signature: void setQuery (string query) Description: Virtual method void QSqlResult::setQuery(const QString &query) This method can be reimplemented in a derived class. |
setSelect | Signature: void setSelect (bool s) Description: Virtual method void QSqlResult::setSelect(bool s) This method can be reimplemented in a derived class. |
size | Signature: int size Description: Virtual method int QSqlResult::size() This method can be reimplemented in a derived class. Python specific notes: |
virtual_hook | Signature: void virtual_hook (int id, void * data) Description: Virtual method void QSqlResult::virtual_hook(int id, void *data) This method can be reimplemented in a derived class. |