KDb
21#ifndef KDB_POSTGRESQLCURSOR_H
22#define KDB_POSTGRESQLCURSOR_H
30class PostgresqlCursorData;
35 explicit PostgresqlCursor(KDbConnection* conn,
const KDbEscapedString& sql,
36 KDbCursor::Options
options = KDbCursor::Option::None);
37 PostgresqlCursor(KDbConnection* conn, KDbQuerySchema*
query,
38 KDbCursor::Options
options = KDbCursor::Option::None);
39 ~PostgresqlCursor()
override;
41 QVariant value(
int pos)
override;
42 const char** recordData()
const override;
43 bool drv_storeCurrentRecord(KDbRecordData* data)
const override;
44 bool drv_open(
const KDbEscapedString& sql)
override;
45 bool drv_close()
override;
46 void drv_getNextRecord()
override;
47 void drv_appendCurrentRecordToBuffer()
override;
48 void drv_bufferMovePointerNext()
override;
49 void drv_bufferMovePointerPrev()
override;
50 void drv_bufferMovePointerTo(qint64 to)
override;
52 void storeResultAndClear(PGresult **pgResult, ExecStatusType execStatus);
55 QVariant pValue(
int pos)
const;
57 unsigned long m_numRows;
58 QVector<KDbField::Type> m_realTypes;
59 QVector<int> m_realLengths;
61 PostgresqlCursorData *
const d;
62 Q_DISABLE_COPY(PostgresqlCursor)
Provides database connection, allowing queries and data modification.
Provides database cursor functionality.
KDbQuerySchema * query() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:12 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.