@tupl/provider-objection
v0.8.0
Published
Objection/Knex provider for tupl
Readme
@tupl/provider-objection
Objection/Knex-backed provider builders for tupl.
Use this package to build a tupl provider over Knex or Objection-backed tables.
Install
pnpm add @tupl/provider-objection knex objectionDocs
- Repository: https://github.com/AndrewIngram/tupl
- Provider contracts and adapter-authoring helpers:
@tupl/provider-kit - Schema APIs:
@tupl/schema
Design Notes
@tupl/provider-kitowns adapter plumbing and capability reporting.- This package owns Objection/Knex-specific planning and execution.
src/index.tsshould stay thin; backend logic belongs inplanning/,execution/, andbackend/.
SQL inspection
Enriched schema.explain(...) includes Knex native SQL in
providerPlans[].description.operations[].sql and its ordered bindings in
variables. Building the description applies the same entity scopes as execution
and does not execute the query. Basic explain does not compile SQL.
These are planned fragment statements. A runtime lookup can add keys from earlier results, so its actual SQL and bindings may differ. Use the database query logger alongside session events to inspect those statements. Bindings can contain scoped values; expose enriched explain only to callers authorized to inspect them.
