Skip to content

docs: catch up with the connect/driver rename - #97

Merged
ryanrasti merged 1 commit into
mainfrom
docs-connect-rename
Aug 6, 2026
Merged

docs: catch up with the connect/driver rename#97
ryanrasti merged 1 commit into
mainfrom
docs-connect-rename

Conversation

@ryanrasti

Copy link
Copy Markdown
Owner

ARCHITECTURE.md still described the pre-rename runtime: Database holding a Driver, and a single Database that was either pool-backed or transaction-bound. Split into Driver / Database / Connection, and document connect(), defaultConnection, dialect-from-driver, and the explicit-isolation rules that transaction({ isolation }) added.

Also there: sql.ident was listed as a supported helper, but sql.ts states there is deliberately no such helper (schema-referencing Idents must carry a Database for the provenance check). And the codegen section only covered Postgres, so note both trees and where the SQLite facts come from.

README: the Backends snippet connected a pg driver and then a sqlite one to the same Database, which now throws on the dialect check — make it a pick-one list and say that several connections must agree.

Comments: _PlayActiveArea referred to runtime.ts's top-level await typegres({ type: "pglite" }), now await PgliteDriver.create(); examples/sqlite cited a sqlite() default that doesn't exist. The share-utils fixtures are compression inputs, never executed, but they read as sample code, so move them to the current init form.

ARCHITECTURE.md still described the pre-rename runtime: Database holding
a Driver, and a single Database that was either pool-backed or
transaction-bound. Split into Driver / Database / Connection, and
document connect(), defaultConnection, dialect-from-driver, and the
explicit-isolation rules that transaction({ isolation }) added.

Also there: sql.ident was listed as a supported helper, but sql.ts
states there is deliberately no such helper (schema-referencing Idents
must carry a Database for the provenance check). And the codegen
section only covered Postgres, so note both trees and where the SQLite
facts come from.

README: the Backends snippet connected a pg driver and then a sqlite
one to the same Database, which now throws on the dialect check — make
it a pick-one list and say that several connections must agree.

Comments: _PlayActiveArea referred to runtime.ts's top-level
`await typegres({ type: "pglite" })`, now `await PgliteDriver.create()`;
examples/sqlite cited a `sqlite()` default that doesn't exist. The
share-utils fixtures are compression inputs, never executed, but they
read as sample code, so move them to the current init form.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ryanrasti
ryanrasti merged commit 1459b48 into main Aug 6, 2026
3 checks passed
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.

1 participant