Skip to content
Corex

WpTableDataReader

Corex\Config\Data\WpTableDataReader · class · Config layer

The $wpdb boundary for a managed custom table (spec 038). Every query is prepared — identifiers with %i, the id with %d — and the page read is bounded with LIMIT/OFFSET (never an unbounded scan). The table + column names are code-defined (from a ManagedTable), not request data; %i is belt-and-suspenders. The Migrator resolves the full, prefixed name.

page(string $table, array $columns, int $page, int $perPage): array

Section titled “page(string $table, array $columns, int $page, int $perPage): array”

query(string $table, array $columns, DataQuery $query): array

Section titled “query(string $table, array $columns, DataQuery $query): array”

countQuery(string $table, array $columns, DataQuery $query): int

Section titled “countQuery(string $table, array $columns, DataQuery $query): int”

find(string $table, array $columns, int $id): ?array

Section titled “find(string $table, array $columns, int $id): ?array”