QSqlDriver

#include <QtSql/QSqlDriver>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QSqlDriver


Overview

Public Functions Index

QSqlDriver (QObject *parent=0)
~QSqlDriver ()
virtual boolbeginTransaction ()
voidclose ()=0
virtual boolcommitTransaction ()
QSqlResult *createResult () const =0
virtual QStringescapeIdentifier (const QString &identifier, IdentifierType type) const
virtual QStringformatValue (const QSqlField &field, bool trimStrings=false) const
virtual QVarianthandle () const
boolhasFeature (DriverFeature f) const =0
boolisIdentifierEscaped (const QString &identifier, IdentifierType type) const
virtual boolisOpen () const
boolisOpenError () const
QSqlErrorlastError () const
QSql::NumericalPrecisionPolicynumericalPrecisionPolicy () const
boolopen (const QString &db, const QString &user=QString(), const QString &password=QString(), const QString &host=QString(), int port=-1, const QString &connOpts=QString())=0
virtual QSqlIndexprimaryIndex (const QString &tableName) const
virtual QSqlRecordrecord (const QString &tableName) const
virtual boolrollbackTransaction ()
voidsetNumericalPrecisionPolicy (QSql::NumericalPrecisionPolicy precisionPolicy)
virtual QStringsqlStatement (StatementType type, const QString &tableName, const QSqlRecord &rec, bool preparedStatement) const
QStringstripDelimiters (const QString &identifier, IdentifierType type) const
QStringListsubscribedToNotifications () const
boolsubscribeToNotification (const QString &name)
virtual QStringListtables (QSql::TableType tableType) const
boolunsubscribeFromNotification (const QString &name)

Protected Functions Index

virtual voidsetLastError (const QSqlError &e)
virtual voidsetOpen (bool o)
virtual voidsetOpenError (bool e)

Signals Index

voidnotification (const QString &name)

Public Types

DriverFeature

Transactions
QuerySize
BLOB
Unicode
PreparedQueries
NamedPlaceholders
PositionalPlaceholders
LastInsertId
BatchOperations
SimpleLocking
LowPrecisionNumbers
EventNotifications
FinishQuery
MultipleResultSets

IdentifierType

FieldName
TableName

StatementType

WhereStatement
SelectStatement
UpdateStatement
InsertStatement
DeleteStatement

Public Functions

QSqlDriver (

~QSqlDriver ()

Destructor.

virtual bool beginTransaction ()

void close ()

virtual bool commitTransaction ()

QSqlResult * createResult ()

virtualQString escapeIdentifier (
  • const QString &identifier,
  • IdentifierTypetype )

virtualQString formatValue (

virtualQVariant handle ()

bool hasFeature (
  • DriverFeaturef)

bool isIdentifierEscaped (
  • const QString &identifier,
  • IdentifierTypetype )

virtual bool isOpen ()

bool isOpenError ()

QSqlError lastError ()

QSql::NumericalPrecisionPolicy numericalPrecisionPolicy ()

bool open (

virtualQSqlIndex primaryIndex (

virtualQSqlRecord record (

virtual bool rollbackTransaction ()

void setNumericalPrecisionPolicy (
  • QSql::NumericalPrecisionPolicyprecisionPolicy)

virtualQString sqlStatement (
  • StatementTypetype,
  • const QString &tableName,
  • const QSqlRecord &rec,
  • boolpreparedStatement )

QString stripDelimiters (
  • const QString &identifier,
  • IdentifierTypetype )

QStringList subscribedToNotifications ()

bool subscribeToNotification (

virtualQStringList tables (
  • QSql::TableTypetableType)

bool unsubscribeFromNotification (

Protected Functions

virtual void setLastError (

virtual void setOpen (
  • boolo)

virtual void setOpenError (
  • boole)

Signals

void notification (

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus