Repository navigation
Internals Database Query QueryPayload
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/database/query/QueryPayload.php · Snapshot 8411f4287706.
DatabaseManager delegates SQL generation to QueryBuilder, execution to IProvider, and result caching to ICache. Schema builders use MySQL DDL and the framework table registry.
final class QueryPayloadSource description (behavioral corrections are recorded in Known discrepancies):
Immutable value object that carries everything needed to execute a query.
@property-read string $sql Prepared-statement SQL string. @property-read array $bindings Placeholder → value map for PDO binding. @property-read string $table The primary table this query targets. @property-read array $conditions Raw column → value pairs from the WHERE clause, used by the cache layer for fine-grained invalidation.
Declarations below preserve visibility, type, default and modifiers exactly. A typed property without an initializer remains uninitialized until its constructor or another method assigns it. Mutable fields belong to this instance unless marked static; readonly fields can be initialized once. Constructor-promoted properties are also listed below.
| Member | Declaration | Purpose or source contract |
|---|---|---|
| Constructor-promoted | public readonly string $sql |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Constructor-promoted | public readonly array $bindings |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Constructor-promoted | public readonly string $table |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Constructor-promoted | public readonly array $conditions = [] |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Method | Signature |
|---|---|
| __construct | public function __construct( public readonly string $sql, public readonly array $bindings, public readonly string $table, public readonly array $conditions = [], ) |
public function __construct(
public readonly string $sql,
public readonly array $bindings,
public readonly string $table,
public readonly array $conditions = [],
);| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$sql |
public readonly string $sql |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
$bindings |
public readonly array $bindings |
SQL placeholder/value map passed to prepared execution. |
$table |
public readonly string $table |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
$conditions |
public readonly array $conditions = [] |
Column/value predicate map; values are bound and identifiers validated by QueryBuilder. |
Concrete no-op/default hook: this method performs no work. Override it where the lifecycle or extension contract calls for behavior.
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes