10#include <Pt/Db/Result.h>
11#include <Pt/RefCounted.h>
25class PT_DB_API ICursor :
public RefCounted
27 friend class IConnection;
30 typedef std::size_t size_type;
53 virtual Result onFetchBatch(size_type batchSize) = 0;
55 virtual void onBeginBatchFetch(size_type batchSize) = 0;
56 virtual Result onEndBatchFetch() = 0;
57 virtual void onClose() = 0;
Database connection backend.
Definition IConnection.h:44
Batch-cursor backend.
Definition ICursor.h:26
bool isOpen() const
Returns true if the cursor is open.
Definition ICursor.h:39
Signal & fetchFinished()
Signal emitted when an asynchronous batch is ready.
Definition ICursor.h:34
IConnection * connection()
Returns the connection that owns this cursor.
Definition ICursor.h:44
One row of a buffered query result.
Definition Row.h:34
Multicast Signal to call multiple slots.
Definition Signal.h:190
Portable SQL database access.
Core module.
Definition Allocator.h:33