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

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

?? qsqldatabase.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
    close() the connection, call this function and open() the    connection again).    There is no default value.    \sa hostName() setUserName() setPassword() setDatabaseName() setPort() setConnectOptions() open()*/void QSqlDatabase::setHostName(const QString& host){    if (isValid())        d->hname = host;}/*!    Sets the connection's port number to \a port. This must be done    before the connection is opened or it has no effect (or you can    close() the connection, call this function and open() the    connection again).    There is no default value.    \sa port() setUserName() setPassword() setHostName()    setDatabaseName() setConnectOptions() open()*/void QSqlDatabase::setPort(int port){    if (isValid())        d->port = port;}/*!    Returns the connection's database name; it may be empty.    \sa setDatabaseName()*/QString QSqlDatabase::databaseName() const{    return d->dbname;}/*!    Returns the connection's user name; it may be empty.    \sa setUserName()*/QString QSqlDatabase::userName() const{    return d->uname;}/*!    Returns the connection's password. If the password was not set    with setPassword(), and if the password was given in the open()    call, or if no password was used, an empty string is returned.*/QString QSqlDatabase::password() const{    return d->pword;}/*!    Returns the connection's host name. It may be empty.    \sa setHostName()*/QString QSqlDatabase::hostName() const{    return d->hname;}/*!    Returns the connection's driver name.    \sa addDatabase(), driver()*/QString QSqlDatabase::driverName() const{    return d->drvName;}/*!    Returns the connection's port number. The value is undefined if    the port number has not been set.    \sa setPort()*/int QSqlDatabase::port() const{    return d->port;}/*!    Returns the database driver used to access the database    connection.    \sa addDatabase() drivers()*/QSqlDriver* QSqlDatabase::driver() const{    return d->driver;}/*!    Returns information about the last error that occurred on the    database.    Failures that occur in conjunction with an individual query are    reported by QSqlQuery::lastError().    \sa QSqlError, QSqlQuery::lastError()*/QSqlError QSqlDatabase::lastError() const{    return d->driver->lastError();}/*!    Returns a list of the database's tables, system tables and views,    as specified by the parameter \a type.    \sa primaryIndex(), record()*/QStringList QSqlDatabase::tables(QSql::TableType type) const{    return d->driver->tables(type);}/*!    Returns the primary index for table \a tablename. If no primary    index exists an empty QSqlIndex is returned.    \sa tables(), record()*/QSqlIndex QSqlDatabase::primaryIndex(const QString& tablename) const{    return d->driver->primaryIndex(tablename);}/*!    Returns a QSqlRecord populated with the names of all the fields in    the table (or view) called \a tablename. The order in which the    fields appear in the record is undefined. If no such table (or    view) exists, an empty record is returned.*/QSqlRecord QSqlDatabase::record(const QString& tablename) const{    return d->driver->record(tablename);}/*!    Sets database-specific \a options. This must be done before the    connection is opened or it has no effect (or you can close() the    connection, call this function and open() the connection again).    The format of the \a options string is a semicolon separated list    of option names or option=value pairs. The options depend on the    database client used:    \table    \header \i ODBC \i MySQL \i PostgreSQL    \row    \i    \list    \i SQL_ATTR_ACCESS_MODE    \i SQL_ATTR_LOGIN_TIMEOUT    \i SQL_ATTR_CONNECTION_TIMEOUT    \i SQL_ATTR_CURRENT_CATALOG    \i SQL_ATTR_METADATA_ID    \i SQL_ATTR_PACKET_SIZE    \i SQL_ATTR_TRACEFILE    \i SQL_ATTR_TRACE    \i SQL_ATTR_CONNECTION_POOLING    \endlist    \i    \list    \i CLIENT_COMPRESS    \i CLIENT_FOUND_ROWS    \i CLIENT_IGNORE_SPACE    \i CLIENT_SSL    \i CLIENT_ODBC    \i CLIENT_NO_SCHEMA    \i CLIENT_INTERACTIVE    \i UNIX_SOCKET    \endlist    \i    \list    \i connect_timeout    \i options    \i tty    \i requiressl    \i service    \endlist    \header \i DB2 \i OCI \i TDS    \row    \i    \list    \i SQL_ATTR_ACCESS_MODE    \i SQL_ATTR_LOGIN_TIMEOUT    \endlist    \i    \list    \i OCI_ATTR_PREFETCH_ROWS    \i OCI_ATTR_PREFETCH_MEMORY    \endlist    \i    \e none    \header \i SQLite    \row    \i    \list    \i QSQLITE_BUSY_TIMEOUT    \endlist    \endtable    Examples:    \code    ...    // MySQL connection    db.setConnectOptions("CLIENT_SSL=1;CLIENT_IGNORE_SPACE=1"); // use an SSL connection to the server    if (!db.open()) {        db.setConnectOptions(); // clears the connect option string        ...    }    ...    // PostgreSQL connection    db.setConnectOptions("requiressl=1"); // enable PostgreSQL SSL connections    if (!db.open()) {        db.setConnectOptions(); // clear options        ...    }    ...    // ODBC connection    db.setConnectOptions("SQL_ATTR_ACCESS_MODE=SQL_MODE_READ_ONLY;SQL_ATTR_TRACE=SQL_OPT_TRACE_ON"); // set ODBC options    if (!db.open()) {        db.setConnectOptions(); // don't try to set this option        ...    }    \endcode    Refer to the client library documentation for more information    about the different options.    \sa connectOptions()*/void QSqlDatabase::setConnectOptions(const QString &options){    if (isValid())        d->connOptions = options;}/*!    Returns the connection options string used for this connection.    The string may be empty.    \sa setConnectOptions() */QString QSqlDatabase::connectOptions() const{    return d->connOptions;}/*!    Returns true if a driver called \a name is available; otherwise    returns false.    \sa drivers()*/bool QSqlDatabase::isDriverAvailable(const QString& name){    return drivers().contains(name);}/*! \overload    This function is useful if you need to set up the database    connection and instantiate the driver yourself. If you do this,    it is recommended that you include the driver code in your own    application. For example, setting up a custom PostgreSQL    connection and instantiating the QPSQL driver can be done like    this:    \code        #include "qtdir/src/sql/drivers/psql/qsql_psql.cpp"    \endcode    (We assume that \c qtdir is the directory where Qt is installed.)    This will pull in the code that is needed to use the PostgreSQL    client library and to instantiate a QPSQLDriver object, assuming    that you have the PostgreSQL headers somewhere in your include    search path.    \code        PGconn *con = PQconnectdb("host=server user=bart password=simpson dbname=springfield");        QPSQLDriver *drv =  new QPSQLDriver(con);        QSqlDatabase db = QSqlDatabase::addDatabase(drv); // becomes the new default connection        QSqlQuery query;        query.exec("SELECT NAME, ID FROM STAFF");        ...    \endcode    The above code sets up a PostgreSQL connection and instantiates a    QPSQLDriver object. Next, addDatabase() is called to add the    connection to the known connections so that it can be used by the    Qt SQL classes. When a driver is instantiated with a connection    handle (or set of handles), Qt assumes that you have already    opened the database connection.    Remember that you must link your application against the database    client library as well. The simplest way to do this is to add    lines like the ones below to your \c .pro file:    \code        unix:LIBS += -lpq        win32:LIBS += libpqdll.lib    \endcode    You will need to have the client library in your linker's search    path.    The method described above will work for all the drivers, the only    difference is the arguments the driver constructors take. Below is    an overview of the drivers and their constructor arguments.    \table    \header \i Driver \i Class name \i Constructor arguments \i File to include    \row    \i QPSQL    \i QPSQLDriver    \i PGconn *connection    \i \c qsql_psql.cpp    \row    \i QMYSQL    \i QMYSQLDriver    \i MYSQL *connection    \i \c qsql_mysql.cpp    \row    \i QOCI    \i QOCIDriver    \i OCIEnv *environment, OCISvcCtx *serviceContext    \i \c qsql_oci.cpp    \row    \i QODBC    \i QODBCDriver    \i SQLHANDLE environment, SQLHANDLE connection    \i \c qsql_odbc.cpp    \row    \i QDB2    \i QDB2    \i SQLHANDLE environment, SQLHANDLE connection    \i \c qsql_db2.cpp    \row    \i QTDS    \i QTDSDriver    \i LOGINREC *loginRecord, DBPROCESS *dbProcess, const QString &hostName    \i \c qsql_tds.cpp    \row    \i QSQLITE    \i QSQLiteDriver    \i sqlite *connection    \i \c qsql_sqlite.cpp    \row    \i QIBASE    \i QIBaseDriver    \i isc_db_handle connection    \i \c qsql_ibase.cpp    \endtable    The host name (or service name) is needed when constructing    the QTDSDriver for creating new connections for internal    queries. This is to prevent the simultaneous usage of several    QSqlQuery/\l{QSqlCursor} objects from blocking each other.    \warning If you add a database with the same name as an    existing database, the new database will replace the old one.    \warning The SQL framework takes ownership of the \a driver pointer,    and it should not be deleted. If you want to    explicitly remove the connection, use removeDatabase().    \sa drivers()*/QSqlDatabase QSqlDatabase::addDatabase(QSqlDriver* driver, const QString& connectionName){    QSqlDatabase db(driver);    QSqlDatabasePrivate::addDatabase(db, connectionName);    return db;}/*!    Returns true if the QSqlDatabase has a valid driver.    Example:    \code        QSqlDatabase db;        qDebug() << db.isValid();    // Returns false        db = QSqlDatabase::database("sales");        qDebug() << db.isValid();    // Returns true if "sales" connection exists        QSqlDatabase::removeDatabase("sales");        qDebug() << db.isValid();    // Returns false    \endcode*/bool QSqlDatabase::isValid() const{    return d->driver && d->driver != d->shared_null()->driver;}#ifdef QT3_SUPPORT/*!    Use query.record() instead.*/QSqlRecord QSqlDatabase::record(const QSqlQuery& query) const{ return query.record(); }/*!    Use query.record() instead.*/QSqlRecord QSqlDatabase::recordInfo(const QSqlQuery& query) const{ return query.record(); }/*!    \fn QSqlRecord QSqlDatabase::recordInfo(const QString& tablename) const    Use record() instead.*/#endif/*!    Clones the database connection \a other and and stores it as \a    connectionName. All the settings from the original database, e.g.    databaseName(), hostName(), etc., are copied across. Does nothing    if \a other is an invalid database. Returns the newly created    database connection.    Note that the connection is not opened, to use it, it is    necessary to call open() first.*/QSqlDatabase QSqlDatabase::cloneDatabase(const QSqlDatabase &other, const QString &connectionName){    if (!other.isValid())        return QSqlDatabase();    QSqlDatabase db(other.driverName());    db.d->copy(other.d);    QSqlDatabasePrivate::addDatabase(db, connectionName);    return db;}#ifndef QT_NO_DEBUG_STREAMQDebug operator<<(QDebug dbg, const QSqlDatabase &d){    if (!d.isValid()) {        dbg.nospace() << "QSqlDatabase(invalid)";        return dbg.space();    }    dbg.nospace() << "QSqlDatabase(driver=\"" << d.driverName() << "\", database=\""                  << d.databaseName() << "\", host=\"" << d.hostName() << "\", port=" << d.port()                  << ", user=\"" << d.userName() << "\", open=" << d.isOpen() << ")";    return dbg.space();}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线免费视频观看| 婷婷激情综合网| 蜜桃av一区二区在线观看| 久久久精品综合| 在线免费不卡电影| 欧美成人午夜电影| 亚洲天堂精品在线观看| 五月婷婷综合激情| eeuss影院一区二区三区| 在线电影一区二区三区| 一区视频在线播放| 韩日av一区二区| 欧美日韩免费一区二区三区 | 欧美成人精品1314www| ●精品国产综合乱码久久久久| 午夜av区久久| 色菇凉天天综合网| 中文字幕一区二区在线播放| 热久久国产精品| 欧美日韩中文字幕一区二区| 国产精品国产自产拍高清av| 精品一区二区三区免费| 9191精品国产综合久久久久久| 亚洲天堂福利av| caoporen国产精品视频| 久久久www免费人成精品| 久久99精品国产麻豆婷婷洗澡| 欧美无砖专区一中文字| 亚洲欧美日韩一区二区三区在线观看| 国产呦萝稀缺另类资源| 久久众筹精品私拍模特| 秋霞电影网一区二区| 欧美精品少妇一区二区三区| 亚洲综合视频网| 91高清在线观看| 一二三四区精品视频| 色综合久久久久| 亚洲色图一区二区三区| 一本大道av伊人久久综合| 中文字幕制服丝袜一区二区三区| 粉嫩高潮美女一区二区三区| 中文字幕久久午夜不卡| 懂色av一区二区三区免费观看| 激情文学综合网| 夜色激情一区二区| 一区二区三区91| 精品播放一区二区| 亚洲国产高清在线| 国产在线视频精品一区| 日韩一级高清毛片| 蜜臀av性久久久久av蜜臀妖精| 欧美大片顶级少妇| 久久99精品久久久久久久久久久久 | 精品少妇一区二区三区日产乱码 | 亚洲欧美日韩久久精品| 日本韩国视频一区二区| 午夜欧美视频在线观看| 中文字幕欧美国产| 91影院在线观看| 亚洲不卡av一区二区三区| 欧美精品一二三四| 国产一区二区不卡在线| 国产精品沙发午睡系列990531| 91老司机福利 在线| 日本欧美一区二区在线观看| 精品国产乱码久久久久久浪潮 | 91丝袜呻吟高潮美腿白嫩在线观看| 亚洲精品久久久蜜桃| 欧美另类高清zo欧美| 激情六月婷婷综合| 日韩毛片精品高清免费| 欧美体内she精高潮| 国产一区二区三区高清播放| 亚洲欧美国产三级| 欧美精品一区二区三区很污很色的| 丁香桃色午夜亚洲一区二区三区| 亚洲一线二线三线久久久| 欧美一卡二卡在线| 99久久伊人网影院| 久久成人久久爱| 国产一区高清在线| 精品国产一区a| 亚洲一区二区不卡免费| 精品久久人人做人人爰| 久久精品一区二区三区不卡| 99精品热视频| 六月丁香婷婷久久| 国产精品久久久久国产精品日日 | 成人黄色小视频在线观看| 性做久久久久久久久| 久久久午夜精品理论片中文字幕| 色婷婷一区二区| 成人免费精品视频| 国模无码大尺度一区二区三区| 一区二区三区国产精华| 国产欧美日韩另类视频免费观看 | 日本va欧美va瓶| 亚洲欧美激情视频在线观看一区二区三区 | 亚洲va欧美va人人爽| 国产人成亚洲第一网站在线播放| 欧美视频在线一区二区三区| 成人爱爱电影网址| 韩国精品一区二区| 免费不卡在线观看| 亚洲第一搞黄网站| 亚洲激情欧美激情| 最新不卡av在线| 国产精品欧美经典| 国产三级欧美三级| 久久精品一级爱片| 亚洲精品一区二区三区精华液| 欧美一级夜夜爽| 欧美性大战久久久久久久蜜臀| 91亚洲精品久久久蜜桃网站| 国产成人精品免费看| 国内久久精品视频| 激情国产一区二区| 经典三级在线一区| 精品一区二区三区在线播放| 奇米精品一区二区三区四区| 亚洲国产乱码最新视频| 一个色在线综合| 亚洲国产日日夜夜| 午夜视频一区在线观看| 亚洲国产另类av| 日韩av一二三| www..com久久爱| 91在线观看地址| 色婷婷激情综合| 欧美日韩日本视频| 日韩一区二区三区精品视频| 日韩欧美一区中文| 久久免费精品国产久精品久久久久| 久久色.com| 国产精品福利一区二区| 亚洲色图制服诱惑| 亚洲第四色夜色| 日本免费在线视频不卡一不卡二| 日本欧美大码aⅴ在线播放| 久久66热re国产| 成人午夜精品一区二区三区| 972aa.com艺术欧美| 777色狠狠一区二区三区| 日韩欧美视频在线| 国产精品久久久久久久裸模| 亚洲午夜精品久久久久久久久| 日本不卡免费在线视频| 国产九色精品成人porny| 91免费国产在线观看| 7777精品伊人久久久大香线蕉最新版 | 中文字幕欧美激情一区| 亚洲午夜免费视频| 国产在线视频不卡二| 色婷婷精品大在线视频| 久久综合中文字幕| 国产精品乱码人人做人人爱| 亚洲国产乱码最新视频| 国产剧情在线观看一区二区| eeuss鲁片一区二区三区| 欧美精品在线视频| 精品福利一区二区三区免费视频| 亚洲美女偷拍久久| 日本强好片久久久久久aaa| 国产成人一区二区精品非洲| 亚洲国产精品视频| 不卡的看片网站| 国产精品婷婷午夜在线观看| 亚洲人成人一区二区在线观看| 美女网站视频久久| 成人网在线免费视频| 欧美在线一区二区| 精品精品欲导航| 五月天视频一区| 国产最新精品精品你懂的| 色综合天天综合网国产成人综合天| 欧美影视一区在线| 中文字幕av一区二区三区免费看 | 久久国产精品一区二区| 成人性生交大片免费看视频在线| 欧亚洲嫩模精品一区三区| 精品乱人伦小说| 日韩不卡免费视频| www.久久精品| 日韩欧美国产综合在线一区二区三区| 精品日韩99亚洲| 麻豆传媒一区二区三区| 成人国产精品免费| 欧美一区二区成人| 青青草国产精品亚洲专区无| 99久久精品国产导航| 精品日产卡一卡二卡麻豆| 亚洲一区二区三区在线看| 99久久精品久久久久久清纯| 日韩欧美国产一二三区| 一区二区三区在线观看动漫| 精品一区二区三区香蕉蜜桃| 精品国产乱码久久久久久浪潮| 亚洲欧洲中文日韩久久av乱码| 国产美女在线精品| 欧美日韩视频在线观看一区二区三区 |