waaseyaa/database-legacy

Database adapter wrapping Drupal DBAL. Interim until Doctrine migration.

Maintainers

Package info

github.com/waaseyaa/database-legacy

pkg:composer/waaseyaa/database-legacy

Statistics

Installs: 178

Dependents: 5

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0-alpha.7 2026-03-15 03:34 UTC

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.