mini\Table\Wrappers\DebugTable class

Documentation

Debug wrapper that logs operations reaching the implementation

Wraps any table and logs what predicates, ordering, and pagination are in effect when the table is actually materialized or queried.

$debug = DebugTable::wrap($table);
$result = $debug->eq('status', 'active')->gt('age', 18)->limit(10);
foreach ($result as $row) { ... }
// Logs: [DebugTable] MATERIALIZE: WHERE status='active' AND age>18 LIMIT 10

Inheritance

Extends: mini\Table\Wrappers\AbstractTableWrapper

Implements: mini\Table\Contracts\TableInterface Traversable Countable IteratorAggregate mini\Table\Contracts\SetInterface

Properties (8)

private array $filters
private ?string $orderSpec
private mixed $logger
private string $tableName
protected mini\Table\AbstractTable $source
protected ?Closure $compareFn
protected ?int $limit
protected int $offset

Methods (43)

Documentation missing

Wrap a table for debugging

Documentation missing

Build SQL-like description of current state

Describe the wrapper chain (helps identify optimization barriers)

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Get the source table this wrapper delegates to

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Hook for subclasses to customize clone behavior

Get column name(s) that the row key represents

Documentation missing

Documentation missing

Documentation missing

Get the current table alias (null if not set)

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Get the primary key column definition (cached)

Iterate over rows with visible columns only

Return table with property set

Source

src/Table/Wrappers/DebugTable.php:24-317