Repository navigation
Internals Database Creator Interface ITableSchemaProvider
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/database/creator/interface/ITableSchemaProvider.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.
interface ITableSchemaProviderSource description (behavioral corrections are recorded in Known discrepancies):
ITableSchemaProvider
Contract for executing DDL (Data Definition Language) statements against the database. DDL covers CREATE TABLE, ALTER TABLE, DROP TABLE, and related index operations.
DDL statements are structurally different from DML (SELECT/INSERT/UPDATE/ DELETE): they carry no parameterised bindings and return no result rows. This interface therefore does not reuse IProvider; it has its own minimal surface suited to schema management.
Separating DDL execution behind this interface means TableWizard never touches a PDO connection directly and can be tested with a stub provider.
No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| executeDDL | public function executeDDL(string $sql): bool |
public function executeDDL(string $sql): bool;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$sql |
string $sql |
A complete DDL statement with no placeholders. |
Execute a DDL statement and return whether it succeeded.
@param string $sql A complete DDL statement with no placeholders.
@return bool True on success.
@throws \RuntimeException On execution failure when DEBUG is enabled.
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