waaseyaa / database-legacy
Database adapter wrapping Drupal DBAL. Interim until Doctrine migration.
v0.1.0-alpha.7
2026-03-15 03:34 UTC
Requires
- php: >=8.3
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2026-03-15 16:00:32 UTC
README
Layer 0 — Foundation
PDO-based database abstraction for Waaseyaa applications.
Provides PdoDatabase with a fluent query builder (select(), insert(), update(), delete()), LIKE-safe escaping, and FETCH_ASSOC mode to avoid duplicate numeric-indexed columns. PdoDatabase::createSqlite() creates an in-memory SQLite instance for tests. DatabaseInterface intentionally omits getPdo(); use PdoDatabase directly when raw PDO access is needed.
Key classes: PdoDatabase, DatabaseInterface, PdoSelect.