CommonPHP Database is the driver-based database layer for CommonPHP applications and plain PHP projects. It owns named connection definitions, lazy driver creation, query execution helpers, transaction helpers, result wrappers, database events, and database-specific exception types.
Database stays engine-neutral. MySQL, Microsoft SQL Server, SQLite, PostgreSQL, and other engines belong in driver packages that implement DatabaseDriverInterface.
Entry points:
CommonPHP\Database\DatabaseManagerCommonPHP\Database\ConnectionRegistryCommonPHP\Database\ConnectionDefinition
Query and result objects:
CommonPHP\Database\QueryCommonPHP\Database\QueryResultCommonPHP\Database\Transaction
Contracts:
CommonPHP\Database\Contracts\DatabaseInterfaceCommonPHP\Database\Contracts\DatabaseDriverInterfaceCommonPHP\Database\Contracts\AbstractDatabaseDriver
Enums:
CommonPHP\Database\Enums\FetchModeCommonPHP\Database\Enums\ParameterType
Events:
CommonPHP\Database\Events\ConnectedEventCommonPHP\Database\Events\QueryExecutedEvent
Exceptions:
CommonPHP\Database\Exceptions\DatabaseExceptionCommonPHP\Database\Exceptions\ConnectionExceptionCommonPHP\Database\Exceptions\ConnectionExistsExceptionCommonPHP\Database\Exceptions\ConnectionNotFoundExceptionCommonPHP\Database\Exceptions\DatabaseDriverExceptionCommonPHP\Database\Exceptions\InvalidConnectionNameExceptionCommonPHP\Database\Exceptions\QueryExceptionCommonPHP\Database\Exceptions\TransactionException