Skip to content

Internals Database Interface ITransactionalProvider

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

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.

ITransactionalProvider

Declaration and architectural role

interface ITransactionalProvider extends IProvider

Source description (behavioral corrections are recorded in Known discrepancies):

Optional capability; existing IProvider implementations remain compatible.

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
transaction public function transaction(callable $callback): mixed
inTransaction public function inTransaction(): bool
afterCommit public function afterCommit(callable $callback): void

transaction

Source line 7

public function transaction(callable $callback): mixed;

Parameters

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.

inTransaction

Source line 8

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.

afterCommit

Source line 9

public function afterCommit(callable $callback): void;

Parameters

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.

Related types

Clone this wiki locally