Repository navigation
Internals Database Interface ITransactionalProvider
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/database/interface/ITransactionalProvider.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 ITransactionalProvider extends IProviderSource description (behavioral corrections are recorded in Known discrepancies):
Optional capability; existing IProvider implementations remain compatible.
No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| transaction | public function transaction(callable $callback): mixed |
| inTransaction | public function inTransaction(): bool |
| afterCommit | public function afterCommit(callable $callback): void |
public function transaction(callable $callback): mixed;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$callback |
callable $callback |
Synchronous callback; its result/failure follows the return/transaction trace below. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function inTransaction(): bool;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function afterCommit(callable $callback): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$callback |
callable $callback |
Synchronous callback; its result/failure follows the return/transaction trace below. |
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