Skip to content

test(database): lock the pgsql:// scheme-alias contract (#280 parity) - #207

Merged
tina4stack merged 1 commit into
v3from
fix/issue-280-pgsql-alias-lock
Oct 9, 2026
Merged

tina4stack merged 1 commit into
v3from
fix/issue-280-pgsql-alias-lock

Conversation

@andrevanzuydam

Copy link
Copy Markdown
Collaborator

Parity lock for tina4stack/tina4-php#280 (where Database::create refused pgsql:// although the URL parser mapped it). Python already accepts pgsql (issue #58); this locks the contract so it can't silently regress.

Asserts the full cross-framework scheme set resolves — sqlite/sqlite3→sqlite, postgres/postgresql/pgsql→postgres, mysql, mssql/sqlserver→mssql, firebird — that the postgres/mssql aliases resolve to the same adapter as their canonical engine, and that an unknown scheme is refused (never falls through to SQLite).

No mocks: the sqlite aliases round-trip against a real in-memory database; the server-engine aliases are checked against the real driver registry. 11 assertions, green.

🤖 Generated with Claude Code

Parity lock for tina4-php#280, where Database::create refused pgsql://
although DatabaseUrl mapped it. Python already accepts pgsql (issue #58);
this test locks it so it cannot silently regress: every documented scheme
(sqlite/sqlite3, postgres/postgresql/pgsql, mysql, mssql/sqlserver,
firebird) resolves, the postgres and mssql aliases resolve to the same
adapter as their canonical engine, and an unknown scheme is refused rather
than falling through to SQLite. No mocks: sqlite aliases round-trip against
a real in-memory database; server aliases are checked against the real
driver registry.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
@tina4stack
tina4stack merged commit 98d10f9 into v3 Oct 9, 2026
15 checks passed
@tina4stack
tina4stack deleted the fix/issue-280-pgsql-alias-lock branch October 12, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants