Class: DatabaseEvent
Full name: Azera\Db\Event\DatabaseEvent
Base class for all database events.
All DB events are immutable value objects. They are dispatched through
AppContext::events() — the unified event system — rather
than the old string-based Database::fire() mechanism.
Each event carries the $database instance so listeners can
inspect the connection (driver, transaction level, etc.) without
holding a separate reference.
Public Properties
public readonlyDatabase$database·
Public methods
__construct() ·
public function __construct(Azera\Db\Database $database): mixed
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$database |
Database | - |
Return value
- Type:
mixed