QPSQLDriver Class Reference

#include <qsql_psql.h>

Class Description

Definition at line 95 of file qsql_psql.h.

+ Inheritance diagram for QPSQLDriver:

Public Types

enum  Protocol {
  VersionUnknown = -1, Version6 = 6, Version7 = 7, Version71 = 8,
  Version73 = 9, Version74 = 10, Version8 = 11, Version81 = 12,
  Version82 = 13, Version83 = 14, Version84 = 15, Version9 = 16
}
 
- Public Types inherited from QSqlDriver
enum  DriverFeature {
  Transactions, QuerySize, BLOB, Unicode,
  PreparedQueries, NamedPlaceholders, PositionalPlaceholders, LastInsertId,
  BatchOperations, SimpleLocking, LowPrecisionNumbers, EventNotifications,
  FinishQuery, MultipleResultSets
}
 
enum  StatementType {
  WhereStatement, SelectStatement, UpdateStatement, InsertStatement,
  DeleteStatement
}
 
enum  IdentifierType { FieldName, TableName }
 

Public Member Functions

 QPSQLDriver (QObject *parent=0)
 
 QPSQLDriver (PGconn *conn, QObject *parent=0)
 
 ~QPSQLDriver ()
 
bool hasFeature (DriverFeature f) const
 
bool open (const QString &db, const QString &user, const QString &password, const QString &host, int port, const QString &connOpts)
 
bool isOpen () const
 
void close ()
 
QSqlResultcreateResult () const
 
QStringList tables (QSql::TableType) const
 
QSqlIndex primaryIndex (const QString &tablename) const
 
QSqlRecord record (const QString &tablename) const
 
Protocol protocol () const
 
QVariant handle () const
 
QString escapeIdentifier (const QString &identifier, IdentifierType type) const
 
QString formatValue (const QSqlField &field, bool trimStrings) const
 
- Public Member Functions inherited from QSqlDriver
 QSqlDriver (QObject *parent=0)
 
 ~QSqlDriver ()
 
bool isOpenError () const
 
virtual QString sqlStatement (StatementType type, const QString &tableName, const QSqlRecord &rec, bool preparedStatement) const
 
QSqlError lastError () const
 
bool subscribeToNotification (const QString &name)
 
bool unsubscribeFromNotification (const QString &name)
 
QStringList subscribedToNotifications () const
 
bool isIdentifierEscaped (const QString &identifier, IdentifierType type) const
 
QString stripDelimiters (const QString &identifier, IdentifierType type) const
 
void setNumericalPrecisionPolicy (QSql::NumericalPrecisionPolicy precisionPolicy)
 
QSql::NumericalPrecisionPolicy numericalPrecisionPolicy () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Slots

bool subscribeToNotificationImplementation (const QString &name)
 
bool unsubscribeFromNotificationImplementation (const QString &name)
 
QStringList subscribedToNotificationsImplementation () const
 
- Protected Slots inherited from QSqlDriver
bool subscribeToNotificationImplementation (const QString &name)
 
bool unsubscribeFromNotificationImplementation (const QString &name)
 
QStringList subscribedToNotificationsImplementation () const
 
bool isIdentifierEscapedImplementation (const QString &identifier, IdentifierType type) const
 
QString stripDelimitersImplementation (const QString &identifier, IdentifierType type) const
 

Protected Member Functions

bool beginTransaction ()
 
bool commitTransaction ()
 
bool rollbackTransaction ()
 
- Protected Member Functions inherited from QSqlDriver
virtual void setOpen (bool o)
 
virtual void setOpenError (bool e)
 
virtual void setLastError (const QSqlError &e)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Signals inherited from QSqlDriver
void notification (const QString &name)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Member Enumeration Documentation

enum Protocol
Enumerator
VersionUnknown 
Version6 
Version7 
Version71 
Version73 
Version74 
Version8 
Version81 
Version82 
Version83 
Version84 
Version9 

Definition at line 99 of file qsql_psql.h.

Constructor & Destructor Documentation

QPSQLDriver ( QObject parent = 0)
explicit
QPSQLDriver ( PGconn conn,
QObject parent = 0 
)
explicit

Member Function Documentation

bool hasFeature ( DriverFeature  f) const
virtual

Implements QSqlDriver.

bool open ( const QString db,
const QString user,
const QString password,
const QString host,
int  port,
const QString connOpts 
)
virtual

Implements QSqlDriver.

bool isOpen ( ) const
virtual

Reimplemented from QSqlDriver.

void close ( )
virtual

Implements QSqlDriver.

QSqlResult* createResult ( ) const
virtual

Implements QSqlDriver.

QStringList tables ( QSql::TableType  ) const
virtual

Reimplemented from QSqlDriver.

QSqlIndex primaryIndex ( const QString tablename) const
virtual

Reimplemented from QSqlDriver.

QSqlRecord record ( const QString tablename) const
virtual

Reimplemented from QSqlDriver.

Protocol protocol ( ) const
QVariant handle ( ) const
virtual

Reimplemented from QSqlDriver.

QString escapeIdentifier ( const QString identifier,
IdentifierType  type 
) const
virtual

Reimplemented from QSqlDriver.

QString formatValue ( const QSqlField field,
bool  trimStrings 
) const
virtual

Reimplemented from QSqlDriver.

bool beginTransaction ( )
protectedvirtual

Reimplemented from QSqlDriver.

bool commitTransaction ( )
protectedvirtual

Reimplemented from QSqlDriver.

bool rollbackTransaction ( )
protectedvirtual

Reimplemented from QSqlDriver.

bool subscribeToNotificationImplementation ( const QString name)
protectedslot
bool unsubscribeFromNotificationImplementation ( const QString name)
protectedslot
QStringList subscribedToNotificationsImplementation ( ) const
protectedslot

The documentation for this class was generated from the following file: