亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qsqlresult.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
    The default implementation calls fetch() with the previous index.    Derived classes can reimplement this function and position the    result to the next record in some other way, and call setAt()    with an appropriate value. Return true to indicate success, or    false to signify failure.*/bool QSqlResult::fetchPrevious(){    return fetch(at() - 1);}/*!    Returns true if you can only scroll forward through the result    set; otherwise returns false.    \sa setForwardOnly()*/bool QSqlResult::isForwardOnly() const{    return d->forwardOnly;}/*!    Sets forward only mode to \a forward. If \a forward is true, only    fetchNext() is allowed for navigating the results. Forward only    mode needs much less memory since results do not have to be    cached. By default, this feature is disabled.    \sa isForwardOnly(), fetchNext()*/void QSqlResult::setForwardOnly(bool forward){    d->forwardOnly = forward;}/*!    Prepares the given \a query, using the underlying database    functionality where possible. Returns true if the query is    prepared successfully; otherwise returns false.    \sa prepare()*/bool QSqlResult::savePrepare(const QString& query){    if (!driver())        return false;    d->clear();    d->sql = query;    if (!driver()->hasFeature(QSqlDriver::PreparedQueries))        return prepare(query);    if (driver()->hasFeature(QSqlDriver::NamedPlaceholders)) {        // parse the query to memorize parameter location        d->namedToPositionalBinding();        d->executedQuery = d->positionalToNamedBinding();    } else {        d->executedQuery = d->namedToPositionalBinding();    }    return prepare(d->executedQuery);}/*!    Prepares the given \a query for execution; the query will normally    use placeholders so that it can be executed repeatedly. Returns    true if the query is prepared successfully; otherwise returns false.    \sa exec()*/bool QSqlResult::prepare(const QString& query){    QRegExp rx(QLatin1String("'[^']*'|:([a-zA-Z0-9_]+)"));    int i = 0;    while ((i = rx.indexIn(query, i)) != -1) {        if (!rx.cap(1).isEmpty())            d->holders.append(QHolder(rx.cap(0), i));        i += rx.matchedLength();    }    d->sql = query;    return true; // fake prepares should always succeed}/*!    Executes the query, returning true if successful; otherwise returns    false.    \sa prepare()*/bool QSqlResult::exec(){    bool ret;    // fake preparation - just replace the placeholders..    QString query = lastQuery();    if (d->binds == NamedBinding) {        int i;        QVariant val;        QString holder;        for (i = d->holders.count() - 1; i >= 0; --i) {            holder = d->holders.at(i).holderName;            val = d->values.value(d->indexes.value(holder));            QSqlField f(QLatin1String(""), val.type());            f.setValue(val);            query = query.replace(d->holders.at(i).holderPos,                                   holder.length(), driver()->formatValue(f));        }    } else {        QString val;        int i = 0;        int idx = 0;        for (idx = 0; idx < d->values.count(); ++idx) {            i = query.indexOf(QLatin1Char('?'), i);            if (i == -1)                continue;            QVariant var = d->values.value(idx);            QSqlField f(QLatin1String(""), var.type());            if (var.isNull())                f.clear();            else                f.setValue(var);            val = driver()->formatValue(f);            query = query.replace(i, 1, driver()->formatValue(f));            i += val.length();        }    }    // have to retain the original query with placeholders    QString orig = lastQuery();    ret = reset(query);    d->executedQuery = query;    setQuery(orig);    d->resetBindCount();    return ret;}/*!    Binds the value \a val of parameter type \a paramType to position \a index    in the current record (row).    \sa addBindValue()*/void QSqlResult::bindValue(int index, const QVariant& val, QSql::ParamType paramType){    d->binds = PositionalBinding;    d->indexes[qFieldSerial(index)] = index;    if (d->values.count() <= index)        d->values.resize(index + 1);    d->values[index] = val;    if (paramType != QSql::In || !d->types.isEmpty())        d->types[index] = paramType;}/*!    \overload    Binds the value \a val of parameter type \a paramType to the \a    placeholder name in the current record (row).    Note that binding an undefined placeholder will result in undefined behavior.*/void QSqlResult::bindValue(const QString& placeholder, const QVariant& val,                           QSql::ParamType paramType){    d->binds = NamedBinding;    // if the index has already been set when doing emulated named    // bindings - don't reset it    int idx = d->indexes.value(placeholder, -1);    if (idx >= 0) {        if (d->values.count() <= idx)            d->values.resize(idx + 1);        d->values[idx] = val;    } else {        d->values.append(val);        idx = d->values.count() - 1;        d->indexes[placeholder] = idx;    }    if (paramType != QSql::In || !d->types.isEmpty())        d->types[idx] = paramType;}/*!    Binds the value \a val of parameter type \a paramType to the next    available position in the current record (row).    \sa bindValue()*/void QSqlResult::addBindValue(const QVariant& val, QSql::ParamType paramType){    d->binds = PositionalBinding;    bindValue(d->bindCount, val, paramType);    ++d->bindCount;}/*!    Returns the value bound at position \a index in the current record    (row).    \sa bindValue(), boundValues()*/QVariant QSqlResult::boundValue(int index) const{    return d->values.value(index);}/*!    \overload    Returns the value bound by the given \a placeholder name in the    current record (row).    \sa bindValueType()*/QVariant QSqlResult::boundValue(const QString& placeholder) const{    int idx = d->indexes.value(placeholder, -1);    return d->values.value(idx);}/*!    Returns the parameter type for the value bound at position \a index.    \sa boundValue()*/QSql::ParamType QSqlResult::bindValueType(int index) const{    return d->types.value(index, QSql::In);}/*!    \overload    Returns the parameter type for the value bound with the given \a    placeholder name.*/QSql::ParamType QSqlResult::bindValueType(const QString& placeholder) const{    return d->types.value(d->indexes.value(placeholder, -1), QSql::In);}/*!    Returns the number of bound values in the result.    \sa boundValues()*/int QSqlResult::boundValueCount() const{    return d->values.count();}/*!    Returns a vector of the result's bound values for the current    record (row).    \sa boundValueCount()*/QVector<QVariant>& QSqlResult::boundValues() const{    return d->values;}/*!    Returns the binding syntax used by prepared queries.*/QSqlResult::BindingSyntax QSqlResult::bindingSyntax() const{    return d->binds;}/*!    Clears the entire result set and releases any associated    resources.*/void QSqlResult::clear(){    d->clear();}/*!    Returns the query that was actually executed. This may differ from    the query that was passed, for example if bound values were used    with a prepared query and the underlying database doesn't support    prepared queries.    \sa exec(), setQuery()*/QString QSqlResult::executedQuery() const{    return d->executedQuery;}void QSqlResult::resetBindCount(){    d->resetBindCount();}/*!    Returns the name of the bound value at position \a index in the    current record (row).    \sa boundValue()*/QString QSqlResult::boundValueName(int index) const{    return d->holderAt(index);}/*!    Returns true if at least one of the query's bound values is a \c    QSql::Out or a QSql::InOut; otherwise returns false.    \sa bindValueType()*/bool QSqlResult::hasOutValues() const{    if (d->types.isEmpty())        return false;    QHash<int, QSql::ParamType>::ConstIterator it;    for (it = d->types.constBegin(); it != d->types.constEnd(); ++it) {        if (it.value() != QSql::In)            return true;    }    return false;}/*!    Returns the current record if the query is active; otherwise    returns an empty QSqlRecord.    The default implementation always returns an empty QSqlRecord.    \sa isActive()*/QSqlRecord QSqlResult::record() const{    return QSqlRecord();}/*!    Returns the object ID of the most recent inserted row if the    database supports it.    An invalid QVariant will be returned if the query did not    insert any value or if the database does not report the id back.    If more than one row was touched by the insert, the behavior is    undefined.    \sa QSqlDriver::hasFeature()*/QVariant QSqlResult::lastInsertId() const{    return QVariant();}/*! \internal*/void QSqlResult::virtual_hook(int, void *){    Q_ASSERT(false);}/*! \internal    \since 4.2    Executes a prepared query in batch mode if the driver supports it,    otherwise emulates a batch execution using bindValue() and exec().    QSqlDriver::hasFeature() can be used to find out whether a driver    supports batch execution.    Batch execution can be faster for large amounts of data since it    reduces network roundtrips.    For batch executions, bound values have to be provided as lists    of variants (QVariantList).    Each list must contain values of the same type. All lists must    contain equal amount of values (rows).    NULL values are passed in as typed QVariants, for example    \c {QVariant(QVariant::Int)} for an integer NULL value.    Example:    \code    QSqlQuery q;    q.prepare("insert into test (i1, i2, s) values (?, ?, ?)");    QVariantList col1;    QVariantList col2;    QVariantList col3;    col1 << 1 << 3;    col2 << 2 << 4;    col3 << "hello" << "world";    q.bindValue(0, col1);    q.bindValue(1, col2);    q.bindValue(2, col3);    if (!q.execBatch())        qDebug() << q.lastError();    \endcode    Here, we insert two rows into a SQL table, with each row containing three values.    \sa exec(), QSqlDriver::hasFeature()*/bool QSqlResult::execBatch(bool arrayBind){    if (driver()->hasFeature(QSqlDriver::BatchOperations)) {        virtual_hook(BatchOperation, &arrayBind);        d->resetBindCount();        return d->error.type() == QSqlError::NoError;    } else {        QVector<QVariant> values = d->values;        if (values.count() == 0)            return false;        for (int i = 0; i < values.at(0).toList().count(); ++i) {            for (int j = 0; j < values.count(); ++j)                bindValue(j, values.at(j).toList().at(i), QSql::In);            if (!exec())                return false;        }        return true;    }    return false;}/*!    Returns the low-level database handle for this result set    wrapped in a QVariant or an invalid QVariant if there is no handle.    \warning Use this with uttermost care and only if you know what you're doing.    \warning The handle returned here can become a stale pointer if the result    is modified (for example, if you clear it).    \warning The handle can be NULL if the result was not executed yet.    The handle returned here is database-dependent, you should query the type    name of the variant before accessing it.    This example retrieves the handle for a sqlite result:    \code    QSqlQuery query = ...    QVariant v = query.result()->handle();    if (v.isValid() && v.typeName() == "sqlite3_stmt*") {        // v.data() returns a pointer to the handle        sqlite3_stmt *handle = *static_cast<sqlite3_stmt **>(v.data());        if (handle != 0) { // check that it is not NULL            ...        }    }    \endcode    This snippet returns the handle for PostgreSQL or MySQL:    \code    if (v.typeName() == "PGresult*") {        PGresult *handle = *static_cast<PGresult **>(v.data());        if (handle != 0) ...    }    if (v.typeName() == "MYSQL_STMT*") {        MYSQL_STMT *handle = *static_cast<MYSQL_STMT **>(v.data());        if (handle != 0) ...    }    \endcode    \sa QSqlDriver::handle()*/QVariant QSqlResult::handle() const{    return QVariant();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人av电影在线播放| 极品少妇xxxx精品少妇偷拍| www日韩大片| 精品免费99久久| 欧美电影免费观看完整版| 日韩欧美中文字幕制服| 日韩一区二区三区视频在线观看| 欧美一三区三区四区免费在线看| 欧美日韩黄色一区二区| 欧美精品xxxxbbbb| 日韩欧美一二区| 久久精品一区二区| 国产精品久久久久久久久快鸭 | 丝袜脚交一区二区| 日韩av中文字幕一区二区三区| 爽好多水快深点欧美视频| 玖玖九九国产精品| 成人一级片网址| 欧美三级中文字幕| 精品国产三级a在线观看| 国产欧美日韩亚州综合| 亚洲六月丁香色婷婷综合久久 | 紧缚捆绑精品一区二区| 国产精品乡下勾搭老头1| 91看片淫黄大片一级在线观看| 精品视频一区二区三区免费| 日韩亚洲欧美一区| 欧美激情一区二区三区蜜桃视频| 亚洲欧美日韩系列| 麻豆成人久久精品二区三区小说| 成人在线视频首页| 91精品黄色片免费大全| 国产午夜精品福利| 天堂久久一区二区三区| 风间由美性色一区二区三区| 欧美区在线观看| 亚洲国产激情av| 免费欧美在线视频| 91色婷婷久久久久合中文| 欧美极品aⅴ影院| 偷偷要91色婷婷| 国产成人一区二区精品非洲| 欧美精品xxxxbbbb| 一区在线播放视频| 国产成人精品亚洲午夜麻豆| 欧美日韩国产成人在线91| 久久精品亚洲乱码伦伦中文| 石原莉奈在线亚洲二区| 99久久免费视频.com| 精品国产乱码久久久久久久久| 一区二区三区高清不卡| 成人精品视频一区二区三区尤物| 日韩一区二区三区电影在线观看| 亚洲视频在线一区| 不卡在线视频中文字幕| 久久综合九色综合欧美就去吻| 天堂va蜜桃一区二区三区| 在线观看成人小视频| 国产精品白丝在线| 国产精品自在欧美一区| 精品国产免费久久| 热久久国产精品| 日韩亚洲电影在线| 日本强好片久久久久久aaa| 欧美日韩一区高清| 亚洲成人激情自拍| 欧美精品在线视频| 爽好多水快深点欧美视频| 欧美日韩中文国产| 日日夜夜精品视频免费| 欧美乱妇23p| 麻豆视频观看网址久久| 欧美一区二区播放| 久久av中文字幕片| 精品国产乱码久久久久久牛牛 | www.日韩精品| 国产精品久久毛片a| av一二三不卡影片| 亚洲女与黑人做爰| 欧美视频一区二区| 美女被吸乳得到大胸91| 精品久久国产97色综合| 国产精品一区二区久激情瑜伽 | 欧美精三区欧美精三区| 五月综合激情网| 日韩视频一区在线观看| 国内精品嫩模私拍在线| 亚洲国产精品精华液2区45| 99在线热播精品免费| 亚洲尤物视频在线| 91麻豆精品国产综合久久久久久| 五月婷婷欧美视频| 久久久影院官网| 色婷婷av一区| 日日骚欧美日韩| 国产午夜一区二区三区| 91成人免费网站| 久久激五月天综合精品| 国产精品国产三级国产普通话蜜臀 | 欧美精品粉嫩高潮一区二区| 黑人巨大精品欧美黑白配亚洲| 中文字幕va一区二区三区| 欧美综合亚洲图片综合区| 美国精品在线观看| 国产精品久久久99| 欧美日韩情趣电影| 国产盗摄精品一区二区三区在线| 亚洲精品欧美激情| 精品精品欲导航| 在线观看欧美精品| 紧缚捆绑精品一区二区| 亚洲综合色噜噜狠狠| 久久精品亚洲精品国产欧美kt∨| 欧美丝袜丝交足nylons| 国产福利91精品一区| 日韩激情中文字幕| 亚洲婷婷国产精品电影人久久| 精品国产一区a| 欧美三级韩国三级日本三斤| 成人av综合在线| 美女一区二区三区在线观看| 亚洲综合在线电影| 久久久激情视频| 日韩免费视频线观看| 欧美在线免费观看亚洲| 成人深夜在线观看| 精品一区二区三区免费毛片爱| 亚洲另类中文字| 中文字幕一区三区| 欧美激情资源网| 欧美mv和日韩mv国产网站| 欧美日韩国产精选| 日本精品一区二区三区四区的功能| 国内精品伊人久久久久av影院 | 欧美精品一区二区三| 3d成人动漫网站| 日本韩国视频一区二区| 91麻豆视频网站| 成人av网址在线观看| 国产成人在线色| 国产一区二区三区四| 久久99九九99精品| 久久精品国产秦先生| 青青草原综合久久大伊人精品优势| 亚洲国产精品麻豆| 玉米视频成人免费看| 亚洲美女在线一区| 伊人婷婷欧美激情| 亚洲一区二区三区不卡国产欧美| 亚洲欧洲在线观看av| 亚洲欧洲在线观看av| 亚洲男帅同性gay1069| 日韩理论在线观看| 亚洲在线免费播放| 亚洲第一综合色| 日本欧美肥老太交大片| 久久精品国产成人一区二区三区 | 精品欧美一区二区三区精品久久 | 欧美精品一二三| 欧美性受极品xxxx喷水| 欧美猛男超大videosgay| 欧美视频一区二区在线观看| 6080日韩午夜伦伦午夜伦| 欧美成人综合网站| 国产喷白浆一区二区三区| 五月天精品一区二区三区| 婷婷综合另类小说色区| 麻豆精品在线看| 高清shemale亚洲人妖| eeuss鲁片一区二区三区| 精品久久久影院| 久久精品亚洲精品国产欧美| 国产精品久久久久一区| 亚洲午夜激情网页| 韩国成人在线视频| 91免费观看视频在线| 欧美日韩午夜精品| 久久久久久久免费视频了| 亚洲免费观看在线观看| 蜜桃久久久久久| 91蜜桃传媒精品久久久一区二区| 欧美日韩一级视频| 中文字幕 久热精品 视频在线| 亚洲精品国产第一综合99久久 | 韩国精品一区二区| 在线免费亚洲电影| 精品免费国产二区三区| 一二三四社区欧美黄| 极品尤物av久久免费看| 欧美性猛片aaaaaaa做受| 久久久99免费| 日本亚洲最大的色成网站www| 成人亚洲精品久久久久软件| 欧美日韩精品一区二区三区| 国产亚洲成aⅴ人片在线观看 | 337p亚洲精品色噜噜噜| 国产精品你懂的在线| 奇米888四色在线精品| 色域天天综合网| 国产日产欧美一区二区视频|