@supawatch/target-effect
v0.14.2
Published
Effect Schema structs generated from live Postgres by supawatch, mapped to what the driver actually returns.
Maintainers
Readme
@supawatch/target-effect
The Effect Schema target for
supawatch. Emits one
Schema.Struct per table, mapped to what your driver actually returns:
numerics decode as strings under the postgres-js profile, timestamps as
DateFromSelf, uuids as Schema.UUID, bytea as
Schema.instanceOf(Uint8Array), enums as unions of literals, nullable
columns as NullOr.
targets: [{ kind: "effect", strict: true }]strict decodes with onExcessProperty: "error". Insert and update
variants follow the same rules as the other validator targets.
Verified, not assumed: the repo's parity harness runs the emitted Effect schemas as one verdict beside every other validator target against rows from a real database, and any divergence must be recorded in a must-fire ledger before the suite passes.
MIT.
