Skip to content
Search
DSL · Postgresql

from_pgsql_limit_offset

Definition

/**
 * Create a PostgreSQL extractor using LIMIT/OFFSET pagination.
 *
 * Suitable for smaller datasets. For large datasets, consider using keyset pagination
 * (from_pgsql_key_set) which is more efficient.
 *
 * @param Client $client PostgreSQL client
 * @param Sql|string $query SQL query to execute (must have ORDER BY clause)
 * @param list<mixed> $parameters Values bound by position to $1, $2, ... placeholders; wrap with {@see \Flow\PostgreSql\DSL\typed()} to force a specific PostgreSQL type
 */
from_pgsql_limit_offset(Client $client, Sql|string $query, array $parameters) : PostgreSqlLimitOffsetExtractor

Contributors

Built in the open.

Join us on GitHub
scroll back to top