NAME

Qt::Sql::QSqlDatabase

PUBLIC METHODS

QSqlDatabase()
QSqlDatabase(const QSqlDatabase & other)
~QSqlDatabase()
static QSqlDatabase addDatabase(const QString & type, const QString & connectionName = QLatin1String(QSqlDatabase::defaultConnection))
static QSqlDatabase addDatabase(const QString & type, const QString & connectionName)
static QSqlDatabase addDatabase(QSqlDriver * driver, const QString & connectionName = QLatin1String(QSqlDatabase::defaultConnection))
static QSqlDatabase addDatabase(QSqlDriver * driver, const QString & connectionName)
static QSqlDatabase cloneDatabase(const QSqlDatabase & other, const QString & connectionName)
void close()
bool commit()
QString connectOptions()
QString connectionName()
static QStringList connectionNames()
static bool contains(const QString & connectionName = QLatin1String(QSqlDatabase::defaultConnection))
static bool contains(const QString & connectionName)
static QSqlDatabase database(const QString & connectionName, bool open = true)
static QSqlDatabase database(const QString & connectionName, bool open)
static QSqlDatabase database(const QString & connectionName = QLatin1String(QSqlDatabase::defaultConnection), bool open = true)
static QSqlDatabase database(const QString & connectionName, bool open = true)
QString databaseName()
QSqlDriver * driver()
QString driverName()
static QStringList drivers()
QSqlQuery exec(const QString & query = QString())
QSqlQuery exec(const QString & query)
QString hostName()
static bool isDriverAvailable(const QString & name)
bool isOpen()
bool isOpenError()
bool isValid()
QSqlError lastError()
QSql::NumericalPrecisionPolicy numericalPrecisionPolicy()
bool open()
bool open(const QString & user, const QString & password)
QSqlDatabase & operator=(const QSqlDatabase & other)
QString password()
int port()
QSqlIndex primaryIndex(const QString & tablename)
QSqlRecord record(const QString & tablename)
static void registerSqlDriver(const QString & name, QSqlDriverCreatorBase * creator)
static void removeDatabase(const QString & connectionName)
bool rollback()
void setConnectOptions(const QString & options = QString())
void setConnectOptions(const QString & options)
void setDatabaseName(const QString & name)
void setHostName(const QString & host)
void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy precisionPolicy)
void setPassword(const QString & password)
void setPort(int p)
void setUserName(const QString & name)
QStringList tables(QSql::TableType type = QSql::Tables)
QStringList tables(QSql::TableType type)
bool transaction()
QString userName()

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2011 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html