Repository navigation
Internals Database Interface IProvider
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/database/interface/IProvider.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.
use PDOStatement;interface IProviderSource description (behavioral corrections are recorded in Known discrepancies):
Contract for a database execution provider.
Decouples the rest of the system from the concrete PDO implementation, making it easy to swap drivers or inject test doubles.
No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| execute | public function execute(string $sql, array $bindings = []): PDOStatement |
| lastInsertId | public function lastInsertId(): int |
public function execute(string $sql, array $bindings = []): PDOStatement;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$sql |
string $sql |
Parameterised SQL string. |
$bindings |
array $bindings = [] |
Placeholder → value map. |
Prepare, bind, and execute a SQL statement.
@param string $sql Parameterised SQL string. @param array $bindings Placeholder → value map.
@return PDOStatement The executed (open cursor) statement.
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function lastInsertId(): int;Return the auto-increment ID produced by the last INSERT.
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
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