Flow PHP

PostgreSqlCursorExtractor implements BatchableExtractor, Extractor

FinalYes

Needs a transaction for DECLARE CURSOR; starts one when none is open.

Interfaces

BatchableExtractor
Extractor

Methods

__construct()  : mixed
batchSize()  : int<1, max>
extract()  : Generator<Signal|null, void>
isRepeatable()  : bool
schema()  : Schema
statistics()  : Statistics
withBatchSize()  : static
withCursorName()  : self
withMaximum()  : self
withSchema()  : static

Methods

__construct()

public __construct(Client $client, string|Sql $query[, array<int, mixed> $parameters = [] ]) : mixed
Parameters
$client : Client
$query : string|Sql
$parameters : array<int, mixed> = []

extract()

public extract(Backend $backend, Criteria $criteria) : Generator<Signal|null, void>
Parameters
$backend : Backend
$criteria : Criteria
Return values
Generator<Signal|null, void>

withBatchSize()

public withBatchSize(int $batchSize) : static
Parameters
$batchSize : int
Return values
static

withCursorName()

public withCursorName(string $cursorName) : self
Parameters
$cursorName : string
Return values
self
On this page

Search results