Remote / foldkit-remote-drizzle
Testing a binding
The package test suite runs the adapter against a real in-process SQLite
database via Node's node:sqlite and drizzle-orm/node-sqlite. That is a good
pattern for application binding tests: build a tiny schema, seed rows, provide
the database Layer, and assert the actual normalized wire values.
ts
const records = await Effect.runPromise(
source(Project)
.read({
ids: ['p1'],
fields: ProjectSummary.fields,
principal: null,
})
.pipe(Effect.provide(DatabaseLive)),
)For relation-heavy examples, see
example/nested.ts, which exercises declarations,
normalization, a windowed relation page, and a keyset Query against seeded
SQLite.
bash
pnpm exec tsx packages/remote-drizzle/example/nested.ts