45 #include <QtSql/qsqlresult.h> 46 #include <QtSql/qsqldriver.h> 49 #define Q_EXPORT_SQLDRIVER_PSQL 51 #define Q_EXPORT_SQLDRIVER_PSQL Q_SQL_EXPORT 138 bool beginTransaction();
139 bool commitTransaction();
140 bool rollbackTransaction();
143 bool subscribeToNotificationImplementation(
const QString &
name);
144 bool unsubscribeFromNotificationImplementation(
const QString &
name);
145 QStringList subscribedToNotificationsImplementation()
const;
148 void _q_handleNotification(
int);
159 #endif // QSQL_PSQL_H The QVariant class acts like a union for the most common Qt data types.
The QSqlIndex class provides functions to manipulate and describe database indexes.
#define QT_END_NAMESPACE
This macro expands to.
DriverFeature
This enum contains a list of features a driver might support.
int size()
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
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.
#define Q_EXPORT_SQLDRIVER_PSQL
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QVariant handle() const
Returns the low-level database handle for this result set wrapped in a QVariant or an invalid QVarian...
void virtual_hook(int id, void *data)
The QStringList class provides a list of strings.
QSqlRecord record() const
Returns the current record if the query is active; otherwise returns an empty QSqlRecord.
QVariant lastInsertId() const
Returns the object ID of the most recent inserted row if the database supports it.
struct pg_result PGresult
bool fetchLast()
Positions the result to the last record (last row) in the result.
bool fetchFirst()
Positions the result to the first record (row 0) in the result.
bool reset(const QString &query)
Sets the result to use the SQL statement query for subsequent data retrieval.
bool prepare(const QString &query)
Prepares the given query for execution; the query will normally use placeholders so that it can be ex...
QVariant data(int i)
Returns the data for field index in the current row as a QVariant.
The QSqlField class manipulates the fields in SQL database tables and views.
QPSQLResult(const QPSQLDriver *db, const QPSQLDriverPrivate *p)
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases...
bool fetch(int i)
Positions the result to an arbitrary (zero-based) row index.
bool exec()
Executes the query, returning true if successful; otherwise returns false.
IdentifierType
This enum contains a list of SQL identifier types.
int open(const char *, int,...)
bool isNull(int field)
Returns true if the field at position index in the current row is null; otherwise returns false...
int numRowsAffected()
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...