QtSql/qsqldriver.h Source File
Go to the documentation of this file.
60 class QSqlDriverPrivate;
70 friend class QSqlDatabase;
78 EventNotifications, FinishQuery, MultipleResultSets };
87 virtual bool isOpen()
const;
90 virtual bool beginTransaction();
91 virtual bool commitTransaction();
92 virtual bool rollbackTransaction();
99 inline QT3_SUPPORT QSqlRecord recordInfo(
const QString& tablename)
const
100 {
return record(tablename); }
101 inline QT3_SUPPORT QSqlRecord recordInfo(
const QSqlQuery& query)
const
102 {
return query.
record(); }
104 inline QT3_SUPPORT
QString formatValue(
const QSqlField *field,
bool trimStrings =
false)
const
105 {
return field ? formatValue(*field, trimStrings) :
QString(); }
107 virtual QString formatValue(
const QSqlField& field,
bool trimStrings =
false)
const;
109 virtual QString escapeIdentifier(
const QString &identifier, IdentifierType
type)
const;
111 const QSqlRecord &rec,
bool preparedStatement)
const;
115 virtual QVariant handle()
const;
116 virtual bool hasFeature(DriverFeature
f)
const = 0;
117 virtual void close() = 0;
118 virtual QSqlResult *createResult()
const = 0;
127 bool unsubscribeFromNotification(
const QString &
name);
130 bool isIdentifierEscaped(
const QString &identifier, IdentifierType
type)
const;
140 virtual void setOpen(
bool o);
141 virtual void setOpenError(
bool e);
142 virtual void setLastError(
const QSqlError& e);
145 bool subscribeToNotificationImplementation(
const QString &
name);
146 bool unsubscribeFromNotificationImplementation(
const QString &
name);
147 QStringList subscribedToNotificationsImplementation()
const;
149 bool isIdentifierEscapedImplementation(
const QString &identifier, IdentifierType
type)
const;
150 QString stripDelimitersImplementation(
const QString &identifier, IdentifierType
type)
const;
160 #endif // QSQLDRIVER_H
GLuint GLuint GLsizei GLenum type
QSqlError lastError() const
#define QT_BEGIN_NAMESPACE
QSqlIndex primaryIndex(const QString &tablename) const
QStringList tables(QSql::TableType type=QSql::Tables) const
QSqlRecord record(const QString &tablename) const
QSqlRecord record() const
GLuint const GLchar * name
void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy precisionPolicy)
QSql::NumericalPrecisionPolicy numericalPrecisionPolicy() const