42 #ifndef QSQLDATABASE_H 43 #define QSQLDATABASE_H 45 #include <QtCore/qstring.h> 46 #include <QtSql/qsql.h> 48 #include <QtSql/qsqlrecord.h> 91 bool isOpenError()
const;
98 {
return record(tablename); }
103 bool isValid()
const;
110 void setUserName(
const QString& name);
111 void setPassword(
const QString& password);
112 void setHostName(
const QString& host);
121 QString connectOptions()
const;
122 QString connectionName()
const;
137 static void removeDatabase(
const QString& connectionName);
142 static bool isDriverAvailable(
const QString &name);
153 #ifndef QT_NO_DEBUG_STREAM 161 #endif // QSQLDATABASE_H The QSqlError class provides SQL database error information.
The QSqlIndex class provides functions to manipulate and describe database indexes.
The QDebug class provides an output stream for debugging information.
#define QT_END_NAMESPACE
This macro expands to.
The QSqlQuery class provides a means of executing and manipulating SQL statements.
The QSqlDriverCreator class is a template class that provides a SQL driver factory for a specific dri...
The QSqlDatabase class represents a connection to a database.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QSqlRecord class encapsulates a database record.
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
The QString class provides a Unicode character string.
virtual ~QSqlDriverCreatorBase()
Destroys the SQL driver creator object.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStringList class provides a list of strings.
Q_SQL_EXPORT QDebug operator<<(QDebug, const QSqlDatabase &)
QT_STATIC_CONST char * defaultConnection
The QSqlDriverCreatorBase class is the base class for SQL driver factories.
QSqlDriver * createObject() const
Reimplemented Function
int open(const char *, int,...)