Skip to content

Internals Database Creator Interface ITableSchemaProvider

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

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.

ITableSchemaProvider

Declaration and architectural role

interface ITableSchemaProvider

Source 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.

Constants, enum cases, traits and properties

No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.

Method index

Method Signature
executeDDL public function executeDDL(string $sql): bool

executeDDL

Source line 31

public function executeDDL(string $sql): bool;

Parameters

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.

Clone this wiki locally