Skip to content

TML-3531: Each default has one stored form, owned by its data type; dates, times and bytes are written with tags - #30750

Merged
wmadden merged 165 commits into
mainfrom
tml-3531-data-type-values
Oct 19, 2026
Merged

wmadden merged 165 commits into
mainfrom
tml-3531-data-type-values

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

A Postgres model with a date default, before and after this pull request:

// before
model Invoice {
  id    Int            @id
  due   Date           @default("2024-01-31")
  total Numeric(10, 2) @default(1.5)
}

// after
model Invoice {
  id    Int            @id
  due   Date           @default(date`2024-01-31`)
  total Numeric(10, 2) @default(1.5)
}

Where the due and total defaults end up:

Before After
contract.json "2024-01-31", "1.5" "2024-01-31", "1.50"
DEFAULT clause written by per-type code in the planner written by the column's codec, as it writes a row
db verify normalises both sides' text, then compares reads the database's default with the column's codec, then compares values
@default("2024-01-31") read as a string, then parsed by a cast from text refused: Expected date`...`; write date`2024-01-31`

The decision

A column's data type owns its values, and a codec only converts them. Every default is stored in one form, decided by the data type, and every tool reads and writes it through the same two pieces. This rewrites and implements ADR 254, "Data types and casts", for Postgres, SQLite, Mongo and the pgvector, PostGIS and arktype-json extensions.

Two words this description uses

  • A data type is the database type of a column, as Prisma declares it: pg/date, pg/numeric, sqlite/integer, pgvector/vector. It knows the type's name in DDL and its parameters, such as numeric(10,2).
  • A codec is how an application sees a column's values. One data type can have several: a pg/timestamptz column can be read as a Date, a Temporal.Instant or text, depending on the codec the schema picks.

The problem

Before this change the codec decided how a default was stored, and several places had their own code to make different spellings of one value equal.

  • Two codecs of one type could store the same value differently, so switching a column from Date to Temporal could change contract.json.
  • On SQLite a datetime default was 2024-01-01T00:00:00Z in the contract and the DEFAULT clause, but every row the application wrote held 2024-01-01T00:00:00.000Z. db verify and the planner each needed code to treat those as equal.
  • A date default was a quoted string, so a date column accepted any string until a cast from text tried to parse it, and contract infer could not tell a date from text when printing it back.

How it works

The data type owns the value. A value is { type, params, value }, where value is the JSON contract.json stores. Only the data type builds one. Each data type declares how to read a value (it accepts every spelling it understands and refuses anything else) and how to spell it (the one form it stores): lower case for a uuid, two fraction digits on numeric(10,2) so 1.5 is stored as "1.50", ISO 8601 text for dates and times. Loading a contract refuses a stored value in any other spelling. Because every codec's value goes through the data type, two codecs of one type can no longer store a value differently.

The codec converts. A codec now has exactly four value methods. Two convert between the data type's value and the application's value (fromDataTypeValue, toDataTypeValue). Two convert between the application's value and what the database driver sends and receives (fromWire, toWire). The old encode, decode, encodeJson and decodeJson are gone, and every codec in the repository is converted.

Every tool goes through those two.

  • Loading a contract: the CLI refuses a contract whose default its data type does not hold, and names the column.
  • Writing a DEFAULT clause: the planner hands the value to the column's codec and writes what the codec writes for a row. The SQLite datetime default and a row now hold the same text.
  • Reading the database's default: introspection takes the literal out of what the database reports and reads it with the column's codec, the same way it reads a row.
  • Comparing: db verify and the planner compare values, not text. The per-type normalising code (toCanonicalForm and the planners' copies of it) is deleted.
  • Rows that come back as JSON, in an include or an aggregate, are read with the same fromWire as an ordinary row.

Values with their own grammar are written with a tag. A date, a time, an interval or bytes is written with its type's tag, date`2024-01-31`, and a quoted string on such a column is refused with the tag to write. Postgres gains date, time, timetz, timestamp, timestamptz, interval and bytea; SQLite gains datetime and blob. The language server offers only the tags a column takes. PostgreSQL's way of writing years before 1 AD and after 9999 is handled in one place.

SQLite's datetime and JSON columns get their own data types. sqlite/datetime and sqlite/json are stored as SQLite text, so their DDL and db verify do not change, but their values are now typed.

contract infer, contract print and the Prisma 7 reader use the same values. Infer reads a database default with the codec of the type it prints and writes it back with the type's tag. The Prisma 7 schema reader stores date, time and bytes defaults as values instead of SQL expressions, and refuses a DateTime default with more precision than its column rather than rounding it, naming what PostgreSQL would store.

What users have to do

Upgrade instructions ship in upgrade-instructions/pending/data-type-values/, for applications and for extension authors.

  • SQLite projects: a script rewrites stored contracts and migration snapshots to the new data types and stored values. Then rewrite quoted date, time, interval and bytes defaults as tags, run contract emit, then db sign.
  • Postgres projects: rewrite quoted date, time, interval and bytes defaults as tags. A contract emitted by an earlier release that stores a default in another spelling than its column gives ("1.5" on numeric(10,2)) is refused by the CLI until it is re-emitted and signed.
  • Extension authors: the four codec methods replace the old ones, and parameter limits move from the codec to the data type. Each change has a before-and-after sample.

What changes in committed files

  • SQLite contracts and their contract.d.ts files are regenerated for sqlite/datetime and sqlite/json. SQLite DDL does not change.
  • The golden planner test records the DDL planned for every committed contract. Six of its Prisma 7 recordings change: date, time and bytes defaults the reader stored as SQL expressions are now typed literals, and Decimal defaults are written with the column's full scale. PostgreSQL stores the same values, which was checked against a database. No other DDL changes.

How it was checked

  • Every codec is run against PGlite and SQLite, including the JSON form rows take in an include.
  • Two journeys migrate a default of every built-in type, with edge values, into PGlite and SQLite, verify with zero issues, then change one default by hand and check that verify names only that column.
  • Manual QA, recorded in projects/data-types-completion/slices/3/manual-qa.md: a SQLite project built with the previous release, upgraded by following the instructions; Postgres defaults on every date and time type, including years before 1 AD and after 9999, through migrate, verify, infer and print; and the Prisma 7 side-by-side flow with date defaults.
  • An in-loop review of each step and a separate four-part review of the whole branch; findings and rulings are in projects/data-types-completion/slices/3/build-review.md.

Not in this pull request

  • db verify comparing a column's type through its data type, and the Prisma 7 reader printing the constructor each data type marks: TML-3387.
  • Function arguments, enum member values and discriminator values checked by the same rules as defaults: TML-3389.
  • Smaller items recorded in projects/data-types-completion/deferred.md, such as a SQLite datetime stored as seconds or a Julian day number, which still reads as milliseconds.

Tickets

Linear TML-3531, the third part of the "Data types own column types" project. It also closes TML-3394 (the Prisma 7 reader stored a date default as SQL), TML-3396 (PostgreSQL's year text), TML-3404 (SQLite wrote a datetime default in one fixed form) and TML-3405 (TypeScript defaults bypassed the data type), and it replaces TML-3406, whose code it deletes. The design was first proposed in #30656, closed so it is reviewed here next to the code.

Alternatives considered

  • Let the codec define the stored form. The stored form would then depend on which codec a schema picked, and moving from Date to Temporal would change the contract.
  • A separate normalising function per type that codecs and verification call. It would be a second definition of a value beside the data type's reader. The data type's own spelling step does this job, so a value keeps one owner.
  • Keep dates as quoted strings, read through a cast from text. That cast would exist only to parse, and every date column would accept any string until the cast refused it. A tag says what the value is.
  • Let the data type read the database's default text. The data type would then parse SQL literals. The database's text is what the driver sends for a row, and the codec already reads that.
  • Read JSON rows with the data type's reader. Every query would have to produce the stored form in SQL, such as UTC text for every date.
  • Declare SQLite datetime and JSON columns with their own SQLite types. A column declared JSON makes SQLite convert a document like "42" to a number, and every existing table would need rebuilding.

Agent: frigg-97

🤖 Generated with Claude Code

Amends ADR 254 and supersedes ADR 184. Inserts the value-ownership slice
before the verify slice in the data types project, with its plan.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Leads with a value followed from PSL to the database, states the four
decisions, and builds up values, codecs, casts and PSL syntax in turn.
Drops the build-status block and every reference to earlier states.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… column's parameters

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… column's parameters

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…em with four methods

DataTypeValue { type, params, value } is constructed only by a data type, through
fromContract and withParams; toContract gives the stored JSON. Every data type
declares a reader of its stored JSON, and parameter limits (int4 and int2 ranges,
char and varchar lengths, numeric(p,s), bit lengths, vector(n)) move from codecs
to the types. numeric(p,s) spells a value with the column's scale.

Codec, CodecImpl, the SQL Codec, MongoCodec and mongoCodec() have
fromDataTypeValue, toDataTypeValue, fromWire and toWire. A codec is built with
its data type and the column's parameters, and toDataTypeValue constructs its
result through that type. Every codec and every caller of encodeJson and
decodeJson is converted.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…codec is built only when called

A contract names a family codec with sqlIntColumn() and the like; the target's
adapted descriptor builds the codec. The template's factory now throws when its
codec is built, not when the helper is called.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…lt spelled with its scale

A Numeric(10, 2) @default(1.5) column stores "1.50", which PostgreSQL also
prints for the column default and for a row; 1.234 and 123456789.5 are refused
with PSL_INVALID_DEFAULT_LITERAL (TML-3479). The date and time types refuse the
forms only Temporal.from read.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…ata type values

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…four codec methods

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… four codec methods

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… four codec methods

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…s use the four codec methods

The Prisma 7 reader's Decimal defaults are numeric(65,30) values, so their
expected contracts now hold the value with thirty fraction digits, as PostgreSQL
prints it; the golden planner manifest records the new fixture hashes.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… long decimal is padded to its scale

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… give; a codec refuses a value of another type

fromContract reads JSON under the parameters and refuses it unless it is
already in the spelling the parameters give, naming that spelling. A codec
builds its value through a constructor inside the data type module that reads
and spells under the parameters, so dataTypeValueFor no longer goes through
fromContract. readReportedValue reads a value the database reports or returns,
in any spelling the type reads; the ORM include and aggregate reads, contract
infer and the codec test kits use it. CodecImpl and mongoCodec() refuse a value
whose type is not the codec's data type.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… value as numeric scale does

A date or time type and interval with a precision refuse a value with more
fraction digits of a second than the precision, rather than round it as
PostgreSQL would: time(0) refuses 00:00:00.5. A character value is spelled
without the spaces that pad it to its length. A geometry column with an SRID
reads only geometries in that SRID. Fixtures that held a scaled numeric or a
padded character in another spelling now hold the one spelling.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… a value that does not come back, and the JSON channel follows toDataTypeValue

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…odec

A module-level map from a type to its constructor missed when a contract source
and the CLI load two copies of framework-components, which fixtures:check does.
The type carries the constructor itself, as fromCodec, and dataTypeValueFor
calls it.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… malformed geometry hex and a vector's length are refused by the type

A date, time or interval value with no precision holds microseconds, so a
seventh fraction digit is refused rather than rounded. Hex that is not EWKB on a
geometry column with an SRID is refused through refuseJsonValue, naming the
type. mongo/vector reads exactly its length's numbers when the column sets one.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…nd compares it with the row

The Postgres kit reads each case's column as an ordinary row through the runtime driver and through the codec's JSON projection, and requires fromWire to read both to the application value the case wrote. Projections that put another value into the JSON now project the text PostgreSQL prints: bytea (hex, not base64), interval (PostgreSQL's interval text, not an ISO duration built in SQL), json, jsonb and arktype-json (a string document otherwise reaches fromWire unquoted), text-array, pgvector (the row's shortest decimals, not widened doubles) and PostGIS geometry (HEXEWKB). pg/text-array@1's fromWire reads the array text the driver returns.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… compares it with the row

The SQLite kit reads each case's column as an ordinary row and through the codec's JSON projection, and requires fromWire to read both to the application value the case wrote. Where JSON cannot carry the row's wire value, fromWire also reads what the projection writes: sqlite/integer@1 and sql/int@1 read the decimal text an integer is cast to, sqlite/real@1 and sql/float@1 read the text Infinity and -Infinity, and sqlite/blob@1 reads the hex text hex() writes. A row the driver cannot read, an INTEGER past 2^53, is reported as such once the projection is shown to carry the value.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…es with fromWire

An include or an aggregate comes back from the database as JSON. The ORM now reads each column in it with the codec's fromWire and the call context an ordinary row's cell gets, as the runtime reads a row, instead of reading it as a stored value. Reading an include is asynchronous. An aggregate descriptor's empty answer is a wire value of its result codec, emptyResultWire, read with fromWire.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…s a data type id

The test passed but did not typecheck: columnCodec.dataType takes a
DataTypeId.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Text such as 2024-01-01 12:00:00, which Prisma never writes but another
tool may, is now read as UTC, as SQLite reads it, instead of in the
machine's time zone. The app instruction says so and shows how to find
such rows.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…keeps running on it

The app text said this release refuses to load a SQLite or PostgreSQL
contract an earlier release emitted. Only the CLI checks the contract
against the stack; an application built with this release keeps running
on the old contract. The text now says so, and to upgrade before the
next db migrate.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…ier release to the upgrade instructions

The fix said to re-run contract emit. For a contract an earlier release
emitted that neither upgrades its migration snapshots nor succeeds while
the schema still has a default the earlier release accepted. The fix and
the next actions now name both cases: the app upgrade instructions, at
the link MIGRATION.OPERATION_OPTION_REMOVED already uses, for a contract
an earlier release emitted, and contract emit for one this release
emitted. The error reference and the stale-default journeys follow.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…he database hold

Human db verify output printed only the path of a mismatched default;
the values were in the JSON output only. The default node now explains
a mismatch with both values, as it already explained a default the codec
could not read: The contract holds "3.10", and the database holds "3.11",
with the text the database reports when it differs. The explanation is
the one place a mismatch adds text to its label; no other node kind has
one.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

# Conflicts:
#	packages/2-mongo-family/2-authoring/contract-psl/test/derive-json-schema-helpers.ts
#	packages/2-mongo-family/2-authoring/contract-psl/test/provider.interpret.test.ts
#	packages/2-mongo-family/2-authoring/contract-psl/test/provider.test.ts
#	packages/2-mongo-family/9-family/src/core/authoring-entity-types.ts
#	packages/2-sql/2-authoring/contract-prisma7/test/fixtures/defaults/expected-contract.json
#	packages/2-sql/2-authoring/contract-prisma7/test/fixtures/list-defaults/expected-contract.json
#	packages/2-sql/2-authoring/contract-prisma7/test/fixtures/number-default-spellings/expected-contract.json
#	packages/2-sql/2-authoring/contract-prisma7/test/fixtures/number-defaults/expected-contract.json
#	packages/2-sql/2-authoring/contract-psl/test/interpreter.no-check.test.ts
#	packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.list-element-nullability.test.ts
#	packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.literal-defaults.test.ts
#	packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.nullable-list.test.ts
#	test/integration/test/cli-journeys/bytea-defaults.e2e.test.ts
#	test/integration/test/cli-journeys/infer-roundtrip-fidelity.brace-array-defaults.e2e.test.ts
#	test/integration/test/cli-journeys/infer-roundtrip-fidelity.prisma7-defaults.e2e.test.ts
@wmadden-electric
wmadden-electric requested a review from a team as a code owner October 16, 2026 08:56
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 721 files, which is 421 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration
  • Configuration used: Repository: prisma/orm/.coderabbit.yml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 85c022c5-d35d-4807-b127-af75da1f1d05
📥 Commits

Reviewing files that changed from the base of the PR and between 11224e0 and 9fe02a8.

⛔ Files ignored due to path filters: 35
  • projects/data-types-completion/deferred.md is excluded by !projects/**
  • projects/data-types-completion/design-notes.md is excluded by !projects/**
  • projects/data-types-completion/plan.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/common-rules.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/reviewer.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-dispatch-a.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-dispatch-b.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-dispatch-c.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-dispatch-d.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-dispatch-e.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-dispatch-f.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-dispatch-g.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-dispatch-h.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/briefs/s3-review-fixes.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/build-review.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/handover.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/manual-qa.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/notes/dispatch-a-rulings.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/notes/inventory-authoring.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/notes/inventory-codec.md is excluded by !projects/**
  • projects/data-types-completion/slices/3/notes/review-b1-probes/probe-pg.mjs is excluded by !projects/**
  • projects/data-types-completion/slices/3/notes/review-b1-probes/probe-pg2.mjs is excluded by !projects/**
  • projects/data-types-completion/slices/3/notes/review-b1-probes/probe-pg3.mjs is excluded by !projects/**
  • projects/data-types-completion/slices/3/notes/review-b1-probes/probe-sqlite.mjs is excluded by !projects/**
  • projects/data-types-completion/slices/3/plan.md is excluded by !projects/**
  • projects/data-types-completion/spec.md is excluded by !projects/**
  • test/e2e/framework/test/sqlite/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • test/e2e/framework/test/sqlite/fixtures/generated/contract.json is excluded by !**/generated/**
  • test/integration/test/contract-parity/fixtures/sqlite/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/contract-parity/fixtures/sqlite/generated/contract.json is excluded by !**/generated/**
  • test/integration/test/enum-members/_fixture-sqlite/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/enum-members/_fixture-sqlite/generated/contract.json is excluded by !**/generated/**
  • test/integration/test/planner-golden/fixtures/sqlite/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/planner-golden/fixtures/sqlite/generated/contract.json is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/__snapshots__/json-projection-variants.test.ts.snap is excluded by !**/*.snap
📒 Files selected for processing: 721
  • .gitleaksignore
  • docs/architecture docs/adrs/ADR 126 - PSL top-level block SPI.md
  • docs/architecture docs/adrs/ADR 157 - Execution enums.md
  • docs/architecture docs/adrs/ADR 184 - Codec-owned value serialization.md
  • docs/architecture docs/adrs/ADR 186 - Codec-dispatched type rendering.md
  • docs/architecture docs/adrs/ADR 204 - Single-Path Async Codec Runtime.md
  • docs/architecture docs/adrs/ADR 207 - Codec call context per-query AbortSignal and column metadata.md
  • docs/architecture docs/adrs/ADR 254 - Data types and casts.md
  • docs/architecture docs/subsystems/5. Adapters & Targets.md
  • docs/reference/aggregate-descriptor-guide.md
  • docs/reference/codec-authoring-guide.md
  • docs/reference/error-reference.md
  • docs/reference/integer-representation-types.md
  • docs/reference/psl-editor-tooling-tagged-literals.md
  • docs/reference/scalar-types.md
  • examples/prisma-8-demo-sqlite/src/prisma/contract.d.ts
  • examples/prisma-8-demo-sqlite/src/prisma/contract.json
  • packages/1-framework/0-foundation/contract/src/contract-validation-error.ts
  • packages/1-framework/0-foundation/contract/src/enum-accessor.ts
  • packages/1-framework/0-foundation/contract/test/enum-accessor.codec.test.ts
  • packages/1-framework/0-foundation/contract/test/enum-accessor.lazy.test.ts
  • packages/1-framework/0-foundation/contract/test/enum-accessor.soundness.test.ts
  • packages/1-framework/0-foundation/contract/test/enum-accessor.test.ts
  • packages/1-framework/0-foundation/contract/test/support/enum-member-codec.ts
  • packages/1-framework/1-core/errors/src/control.ts
  • packages/1-framework/1-core/errors/src/migration.ts
  • packages/1-framework/1-core/errors/src/upgrade-guides.ts
  • packages/1-framework/1-core/errors/test/next-actions.test.ts
  • packages/1-framework/1-core/framework-components/README.md
  • packages/1-framework/1-core/framework-components/src/control/control-capabilities.ts
  • packages/1-framework/1-core/framework-components/src/control/control-stack.ts
  • packages/1-framework/1-core/framework-components/src/exports/authoring.ts
  • packages/1-framework/1-core/framework-components/src/exports/codec.ts
  • packages/1-framework/1-core/framework-components/src/shared/aggregate-descriptor.ts
  • packages/1-framework/1-core/framework-components/src/shared/codec-descriptor.ts
  • packages/1-framework/1-core/framework-components/src/shared/codec.ts
  • packages/1-framework/1-core/framework-components/src/shared/data-type-id-pattern.ts
  • packages/1-framework/1-core/framework-components/src/shared/data-type.ts
  • packages/1-framework/1-core/framework-components/src/shared/enum-block-members.ts
  • packages/1-framework/1-core/framework-components/src/shared/enum-members.ts
  • packages/1-framework/1-core/framework-components/src/shared/framework-authoring.ts
  • packages/1-framework/1-core/framework-components/src/shared/json-readers.ts
  • packages/1-framework/1-core/framework-components/src/shared/render-ts-literal.ts
  • packages/1-framework/1-core/framework-components/src/shared/tagged-literal.ts
  • packages/1-framework/1-core/framework-components/src/shared/written-value.ts
  • packages/1-framework/1-core/framework-components/test/aggregate-descriptor-contributions.test.ts
  • packages/1-framework/1-core/framework-components/test/aggregate-overloads.test.ts
  • packages/1-framework/1-core/framework-components/test/canonical-form-of.test.ts
  • packages/1-framework/1-core/framework-components/test/codec-call-context.types.test-d.ts
  • packages/1-framework/1-core/framework-components/test/codec-impl-values.test.ts
  • packages/1-framework/1-core/framework-components/test/codec-types.types.test-d.ts
  • packages/1-framework/1-core/framework-components/test/codec.test.ts
  • packages/1-framework/1-core/framework-components/test/codec.types.test-d.ts
  • packages/1-framework/1-core/framework-components/test/control-stack.test.ts
  • packages/1-framework/1-core/framework-components/test/data-type-assembly.test.ts
  • packages/1-framework/1-core/framework-components/test/data-type-descriptor.types.test-d.ts
  • packages/1-framework/1-core/framework-components/test/data-type-value.test.ts
  • packages/1-framework/1-core/framework-components/test/data-type-value.types.test-d.ts
  • packages/1-framework/1-core/framework-components/test/data-type.test.ts
  • packages/1-framework/1-core/framework-components/test/enum-block-members.test.ts
  • packages/1-framework/1-core/framework-components/test/enum-members.test.ts
  • packages/1-framework/1-core/framework-components/test/json-readers.test.ts
  • packages/1-framework/1-core/framework-components/test/materialize-codec.test.ts
  • packages/1-framework/1-core/framework-components/test/tagged-literal.test.ts
  • packages/1-framework/1-core/framework-components/test/written-value.test.ts
  • packages/1-framework/1-core/ts-render/README.md
  • packages/1-framework/1-core/ts-render/src/json-to-ts-source.ts
  • packages/1-framework/2-authoring/contract/test/enum-members.test.ts
  • packages/1-framework/2-authoring/psl-parser/src/attribute-spec/combinators/data-type-value.ts
  • packages/1-framework/2-authoring/psl-parser/src/attribute-spec/spec-context.ts
  • packages/1-framework/2-authoring/psl-parser/src/attribute-spec/types.ts
  • packages/1-framework/2-authoring/psl-parser/src/binder.ts
  • packages/1-framework/2-authoring/psl-parser/test/attribute-spec-combinators.data-type-value.test.ts
  • packages/1-framework/2-authoring/psl-parser/test/binder.mixin.test.ts
  • packages/1-framework/2-authoring/psl-parser/test/binder.test.ts
  • packages/1-framework/2-authoring/psl-parser/test/block-spec-context.test.ts
  • packages/1-framework/3-tooling/cli/src/control-api/client.ts
  • packages/1-framework/3-tooling/cli/src/control-api/operations/contract-at-errors.ts
  • packages/1-framework/3-tooling/cli/src/control-api/operations/migration-check.ts
  • packages/1-framework/3-tooling/cli/src/control-api/operations/migration-new.ts
  • packages/1-framework/3-tooling/cli/src/control-api/operations/migration-plan.ts
  • packages/1-framework/3-tooling/cli/src/control-api/operations/snapshot-declarations.ts
  • packages/1-framework/3-tooling/cli/src/control-api/testing/fixture-client.ts
  • packages/1-framework/3-tooling/cli/src/control-api/types.ts
  • packages/1-framework/3-tooling/cli/src/orm/contract/infer.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/init.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/sign.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/update.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/verification.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/verify.ts
  • packages/1-framework/3-tooling/cli/src/orm/migrate.ts
  • packages/1-framework/3-tooling/cli/src/orm/migration/check.ts
  • packages/1-framework/3-tooling/cli/src/orm/migration/show.ts
  • packages/1-framework/3-tooling/cli/src/utils/contract-validation-meta.ts
  • packages/1-framework/3-tooling/cli/test/control-api/client.test.ts
  • packages/1-framework/3-tooling/cli/test/control-api/testing/fixture-client.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/db-verify.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/migration-check.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/schema-drift-next-actions.test.ts
  • packages/1-framework/3-tooling/cli/test/utils/contract-validation-meta.test.ts
  • packages/1-framework/3-tooling/emitter/src/generate-contract-dts.ts
  • packages/1-framework/3-tooling/emitter/test/domain-type-generation.test.ts
  • packages/1-framework/3-tooling/emitter/test/generate-contract-dts.enum-member-types.test.ts
  • packages/1-framework/3-tooling/language-server/src/attribute-spec-resolution.ts
  • packages/1-framework/3-tooling/language-server/test/attribute-spec-consumability.test.ts
  • packages/1-framework/3-tooling/language-server/test/block-spec-context.test.ts
  • packages/1-framework/3-tooling/language-server/test/completion-provider.test.ts
  • packages/1-framework/3-tooling/language-server/test/config-resolution.test.ts
  • packages/1-framework/3-tooling/migration/src/aggregate/aggregate.ts
  • packages/1-framework/3-tooling/migration/src/errors.ts
  • packages/1-framework/3-tooling/migration/test/aggregate/collect-aggregate-namespaces.test.ts
  • packages/1-framework/3-tooling/migration/test/aggregate/contract-at.test.ts
  • packages/1-framework/3-tooling/migration/test/errors.test.ts
  • packages/2-mongo-family/1-foundation/mongo-codec/README.md
  • packages/2-mongo-family/1-foundation/mongo-codec/src/codecs.ts
  • packages/2-mongo-family/1-foundation/mongo-codec/test/codecs-ctx.test-d.ts
  • packages/2-mongo-family/1-foundation/mongo-codec/test/codecs-ctx.test.ts
  • packages/2-mongo-family/1-foundation/mongo-codec/test/codecs.data-type-values.test.ts
  • packages/2-mongo-family/1-foundation/mongo-codec/test/codecs.test-d.ts
  • packages/2-mongo-family/1-foundation/mongo-codec/test/codecs.test.ts
  • packages/2-mongo-family/1-foundation/mongo-contract/src/fake-type-lookups.ts
  • packages/2-mongo-family/1-foundation/mongo-contract/test/mongo-data-type.test.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/enum-member-checks.test.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/enum-stored-form.test.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/provider.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/src/interpreter.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/block-spec-context.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.bson-scalars.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.enum-stored-form.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.polymorphism.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.recursive-value-objects.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.temporal-presets.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/mongo-attribute-specs.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/mongo-type-lookups.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/provider.test.ts
  • packages/2-mongo-family/2-authoring/contract-ts/test/config-types.test.ts
  • packages/2-mongo-family/2-authoring/contract-ts/test/contract-builder.data-types.test.ts
  • packages/2-mongo-family/2-authoring/contract-ts/test/enum-type.authoring.test.ts
  • packages/2-mongo-family/2-authoring/contract-ts/test/enum-type.member-checks.test.ts
  • packages/2-mongo-family/7-runtime/src/codecs/decoding.ts
  • packages/2-mongo-family/7-runtime/src/mongo-runtime.ts
  • packages/2-mongo-family/7-runtime/test/codecs/decoding.test.ts
  • packages/2-mongo-family/7-runtime/test/execution-context.test.ts
  • packages/2-mongo-family/7-runtime/test/mongo-enums.test.ts
  • packages/2-mongo-family/7-runtime/test/mongo-runtime.decode.test.ts
  • packages/2-mongo-family/7-runtime/test/mongo-runtime.finalization.test.ts
  • packages/2-mongo-family/9-family/src/core/authoring-entity-types.ts
  • packages/2-mongo-family/9-family/test/enum-entity-fixtures.ts
  • packages/2-sql/1-core/contract/README.md
  • packages/2-sql/1-core/contract/src/data-type-support.ts
  • packages/2-sql/1-core/contract/src/date-time-stored-form.ts
  • packages/2-sql/1-core/contract/src/exports/data-type-support.ts
  • packages/2-sql/1-core/contract/src/exports/data-type.ts
  • packages/2-sql/1-core/contract/src/sql-data-type.ts
  • packages/2-sql/1-core/contract/src/sql-expression.ts
  • packages/2-sql/1-core/contract/src/validators.ts
  • packages/2-sql/1-core/contract/test/data-type-support.test.ts
  • packages/2-sql/1-core/contract/test/date-time-stored-form.test.ts
  • packages/2-sql/1-core/contract/test/sql-data-type-fixtures.ts
  • packages/2-sql/1-core/contract/test/sql-data-type.collide.test.ts
  • packages/2-sql/1-core/contract/test/sql-data-type.declare.test.ts
  • packages/2-sql/1-core/contract/test/sql-data-type.of-codec.test.ts
  • packages/2-sql/1-core/contract/test/sql-data-type.render.test.ts
  • packages/2-sql/1-core/contract/test/sql-data-type.resolve.test.ts
  • packages/2-sql/1-core/contract/test/sql-data-type.sql-expression.test.ts
  • packages/2-sql/1-core/contract/test/sql-data-type.stored-as.test.ts
  • packages/2-sql/1-core/contract/test/sql-expression.test.ts
  • packages/2-sql/1-core/contract/test/test-type-lookups.ts
  • packages/2-sql/1-core/contract/test/validators.test.ts
  • packages/2-sql/1-core/schema-ir/README.md
  • packages/2-sql/1-core/schema-ir/src/exports/types.ts
  • packages/2-sql/1-core/schema-ir/src/ir/default-in-canonical-form.ts
  • packages/2-sql/1-core/schema-ir/src/ir/resolved-default-equality.ts
  • packages/2-sql/1-core/schema-ir/src/ir/sql-column-default-ir.ts
  • packages/2-sql/1-core/schema-ir/src/ir/sql-column-ir.ts
  • packages/2-sql/1-core/schema-ir/src/ir/sql-default-value.ts
  • packages/2-sql/1-core/schema-ir/src/types.ts
  • packages/2-sql/1-core/schema-ir/test/default-in-canonical-form.test.ts
  • packages/2-sql/1-core/schema-ir/test/resolved-default-equality.test.ts
  • packages/2-sql/1-core/schema-ir/test/sql-column-default-ir.test.ts
  • packages/2-sql/1-core/schema-ir/test/sql-column-ir.test.ts
  • packages/2-sql/2-authoring/contract-prisma7/README.md
  • packages/2-sql/2-authoring/contract-prisma7/src/defaults.ts
  • packages/2-sql/2-authoring/contract-prisma7/src/target-binding.ts
  • packages/2-sql/2-authoring/contract-prisma7/test/defaults.test.ts
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures.test.ts
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/datetime-default-finer-than-column/expected-diagnostics.json
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/datetime-default-finer-than-column/schema.prisma
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/datetime-defaults/expected-contract.json
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/defaults/expected-contract.json
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/list-defaults/expected-contract.json
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/number-default-spellings/expected-contract.json
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/number-defaults/expected-contract.json
  • packages/2-sql/2-authoring/contract-prisma7/test/provider.test.ts
  • packages/2-sql/2-authoring/contract-psl/src/data-type-default.ts
  • packages/2-sql/2-authoring/contract-psl/src/interpreter.ts
  • packages/2-sql/2-authoring/contract-psl/src/psl-column-resolution.ts
  • packages/2-sql/2-authoring/contract-psl/src/psl-field-resolution.ts
  • packages/2-sql/2-authoring/contract-psl/src/sql-attribute-specs.ts
  • packages/2-sql/2-authoring/contract-psl/src/value-object-default.ts
  • packages/2-sql/2-authoring/contract-psl/test/block-spec-context.test.ts
  • packages/2-sql/2-authoring/contract-psl/test/data-type-default.test.ts
  • packages/2-sql/2-authoring/contract-psl/test/fixture-codec-descriptors.ts
  • packages/2-sql/2-authoring/contract-psl/test/fixture-data-types.ts
  • packages/2-sql/2-authoring/contract-psl/test/interpreter-defaults-support.ts
  • packages/2-sql/2-authoring/contract-psl/test/interpreter.defaults.data-types.test.ts
  • packages/2-sql/2-authoring/contract-psl/test/interpreter.defaults.tagged-literal.test.ts
  • packages/2-sql/2-authoring/contract-psl/test/interpreter.enum.test.ts
  • packages/2-sql/2-authoring/contract-psl/test/provider.enum-member-attributes.test.ts
  • packages/2-sql/2-authoring/contract-psl/test/provider.interpret.test.ts
  • packages/2-sql/2-authoring/contract-psl/test/semantic-diagnostics.test.ts
  • packages/2-sql/2-authoring/contract-psl/test/sql-attribute-specs.test.ts
  • packages/2-sql/2-authoring/contract-ts/README.md
  • packages/2-sql/2-authoring/contract-ts/src/column-defaults.ts
  • packages/2-sql/2-authoring/contract-ts/src/contract-definition.ts
  • packages/2-sql/2-authoring/contract-ts/src/contract-types.ts
  • packages/2-sql/2-authoring/contract-ts/src/lower-column.ts
  • packages/2-sql/2-authoring/contract-ts/test/authoring-helper-runtime.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/build-contract.type-names.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/check-constraint.authoring.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/column-node.equation.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/config-types.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/contract-builder.contract-definition.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/contract-builder.default-refusal.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/contract-builder.value-object-storage.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/enum-type.codec-encoding.test.ts
  • packages/2-sql/2-authoring/contract-ts/test/specifier-strip.authoring.test.ts
  • packages/2-sql/3-tooling/emitter/test/emitter-hook.aggregate-types.test.ts
  • packages/2-sql/3-tooling/emitter/test/emitter.named-type-columns.test.ts
  • packages/2-sql/4-lanes/relational-core/README.md
  • packages/2-sql/4-lanes/relational-core/src/aggregate-descriptor-registry.ts
  • packages/2-sql/4-lanes/relational-core/src/ast/codec-types.ts
  • packages/2-sql/4-lanes/relational-core/src/ast/ddl-default.ts
  • packages/2-sql/4-lanes/relational-core/src/ast/ddl-types.ts
  • packages/2-sql/4-lanes/relational-core/src/ast/sql-codecs.ts
  • packages/2-sql/4-lanes/relational-core/test/aggregate-descriptor-registry.test.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/codec-factory-ctx.types.test-d.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/codec-json-channel.types.test-d.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/ddl-default.test.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/sql-codecs.test.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/test-codec.ts
  • packages/2-sql/4-lanes/relational-core/test/codec-decode-json-forms.test.ts
  • packages/2-sql/4-lanes/relational-core/test/codec-strictness.test.ts
  • packages/2-sql/4-lanes/relational-core/test/structured-errors.test.ts
  • packages/2-sql/4-lanes/relational-core/test/template-codecs.ts
  • packages/2-sql/4-lanes/relational-core/test/typed-codec-flow.test-d.ts
  • packages/2-sql/4-lanes/sql-builder/test/runtime/aggregate-lowering.test.ts
  • packages/2-sql/4-lanes/sql-builder/test/runtime/builders.test.ts
  • packages/2-sql/4-lanes/sql-builder/test/runtime/contributed-aggregates.test.ts
  • packages/2-sql/4-lanes/sql-builder/test/runtime/functions.test.ts
  • packages/2-sql/4-lanes/sql-builder/test/runtime/select-locking.test.ts
  • packages/2-sql/5-runtime/src/codecs/decoding.ts
  • packages/2-sql/5-runtime/src/codecs/encoding.ts
  • packages/2-sql/5-runtime/test/ast-codec-resolver.test.ts
  • packages/2-sql/5-runtime/test/before-compile-chain.test.ts
  • packages/2-sql/5-runtime/test/codec-async.test.ts
  • packages/2-sql/5-runtime/test/codec-decode-ctx.test.ts
  • packages/2-sql/5-runtime/test/codec-encode-ctx.test.ts
  • packages/2-sql/5-runtime/test/codec-integrity.test.ts
  • packages/2-sql/5-runtime/test/contract-codec-registry.test.ts
  • packages/2-sql/5-runtime/test/decode-error-passthrough.test.ts
  • packages/2-sql/5-runtime/test/encode-error-passthrough.test.ts
  • packages/2-sql/5-runtime/test/encoding-dispatch.test.ts
  • packages/2-sql/5-runtime/test/execution-stack.test.ts
  • packages/2-sql/5-runtime/test/intercept-decoding.test.ts
  • packages/2-sql/5-runtime/test/marker-verification.test.ts
  • packages/2-sql/5-runtime/test/marker-vs-intercept-ordering.test.ts
  • packages/2-sql/5-runtime/test/parameterized-types.test.ts
  • packages/2-sql/5-runtime/test/raw-connection-seam.test.ts
  • packages/2-sql/5-runtime/test/raw-query-decode.test.ts
  • packages/2-sql/5-runtime/test/runtime-ctx-passthrough.test.ts
  • packages/2-sql/5-runtime/test/scalar-list-codec.test.ts
  • packages/2-sql/5-runtime/test/scope-plumbing.test.ts
  • packages/2-sql/5-runtime/test/seeded-secret-codec.ts
  • packages/2-sql/5-runtime/test/sql-context.aggregate-descriptors.test.ts
  • packages/2-sql/5-runtime/test/sql-context.codec-context.test.ts
  • packages/2-sql/5-runtime/test/sql-context.test.ts
  • packages/2-sql/5-runtime/test/sql-runtime-abort.test.ts
  • packages/2-sql/5-runtime/test/sql-runtime.test.ts
  • packages/2-sql/5-runtime/test/test-codec.ts
  • packages/2-sql/5-runtime/test/transaction-activity-fixtures.ts
  • packages/2-sql/5-runtime/test/utils.ts
  • packages/2-sql/9-family/src/core/assembly.ts
  • packages/2-sql/9-family/src/core/contract-stack-checks.ts
  • packages/2-sql/9-family/src/core/control-adapter.ts
  • packages/2-sql/9-family/src/core/control-instance.ts
  • packages/2-sql/9-family/src/core/control-target-descriptor.ts
  • packages/2-sql/9-family/src/core/diff/sql-schema-diff.ts
  • packages/2-sql/9-family/src/core/ir/sql-contract-serializer-base.ts
  • packages/2-sql/9-family/src/core/migrations/contract-to-schema-ir.ts
  • packages/2-sql/9-family/src/core/migrations/field-event-planner.ts
  • packages/2-sql/9-family/src/core/psl-build/default-mapping.ts
  • packages/2-sql/9-family/src/core/psl-build/inferred-type-constructors.ts
  • packages/2-sql/9-family/src/core/reported-defaults.ts
  • packages/2-sql/9-family/src/exports/control.ts
  • packages/2-sql/9-family/test/assembly.sql-data-types.test.ts
  • packages/2-sql/9-family/test/contract-to-schema-ir.test.ts
  • packages/2-sql/9-family/test/control-instance.deserialize-contract-stack.test.ts
  • packages/2-sql/9-family/test/control-instance.error-codes.test.ts
  • packages/2-sql/9-family/test/control-instance.sql-expression-casts.test.ts
  • packages/2-sql/9-family/test/enum-entity-fixtures.ts
  • packages/2-sql/9-family/test/field-event-fixtures.ts
  • packages/2-sql/9-family/test/field-event-planner.renamed-columns.test.ts
  • packages/2-sql/9-family/test/field-event-planner.renamed-tables.test.ts
  • packages/2-sql/9-family/test/field-event-planner.test.ts
  • packages/2-sql/9-family/test/psl-build/default-mapping.test.ts
  • packages/2-sql/9-family/test/psl-build/inferred-type-constructors.test.ts
  • packages/2-sql/9-family/test/psl-infer-described-contracts.test.ts
  • packages/2-sql/9-family/test/reported-defaults.test.ts
  • packages/2-sql/9-family/test/schema-verify.verdict.test.ts
  • packages/2-sql/9-family/test/sql-type-lookups.test.ts
  • packages/3-extensions/arktype-json/README.md
  • packages/3-extensions/arktype-json/src/core/arktype-json-codec.ts
  • packages/3-extensions/arktype-json/test/arktype-json-codec.driver.integration.test.ts
  • packages/3-extensions/arktype-json/test/arktype-json-codec.test.ts
  • packages/3-extensions/arktype-json/test/arktype-json-codec.types.test-d.ts
  • packages/3-extensions/arktype-json/test/codec-conformance.integration.test.ts
  • packages/3-extensions/arktype-json/test/contract-json.ts
  • packages/3-extensions/arktype-json/test/postgres-codec-descriptor-adoption.test.ts
  • packages/3-extensions/mongo/test/mongo.enum.e2e.test.ts
  • packages/3-extensions/mongo/test/mongo.test.ts
  • packages/3-extensions/pgvector/src/core/codecs.ts
  • packages/3-extensions/pgvector/src/core/data-types.ts
  • packages/3-extensions/pgvector/test/codec-conformance.integration.test.ts
  • packages/3-extensions/pgvector/test/codec-strictness.test.ts
  • packages/3-extensions/pgvector/test/codecs.test.ts
  • packages/3-extensions/pgvector/test/contract-infer.test.ts
  • packages/3-extensions/pgvector/test/contract-json.ts
  • packages/3-extensions/pgvector/test/data-types.test.ts
  • packages/3-extensions/pgvector/test/migrations/planner.behavior.test.ts
  • packages/3-extensions/pgvector/test/migrations/planner.contract-to-schema-ir.test.ts
  • packages/3-extensions/pgvector/test/migrations/planner.set-default.test.ts
  • packages/3-extensions/pgvector/test/postgres-codec-descriptor-adoption.test.ts
  • packages/3-extensions/pgvector/test/structured-errors.test.ts
  • packages/3-extensions/pgvector/test/vector-data-type-reader.test.ts
  • packages/3-extensions/postgis/src/core/codecs.ts
  • packages/3-extensions/postgis/src/core/data-types.ts
  • packages/3-extensions/postgis/test/codecs.test.ts
  • packages/3-extensions/postgis/test/contract-infer.test.ts
  • packages/3-extensions/postgis/test/contract-json.ts
  • packages/3-extensions/postgis/test/geometry-data-type-reader.test.ts
  • packages/3-extensions/postgis/test/postgres-codec-descriptor-adoption.test.ts
  • packages/3-extensions/postgis/test/structured-errors.test.ts
  • packages/3-extensions/postgres/test/contract-builder/data-type-assembly.test.ts
  • packages/3-extensions/postgres/test/contract-builder/default-encoding.test.ts
  • packages/3-extensions/postgres/test/contract-builder/enum-uuid-authoring.test.ts
  • packages/3-extensions/postgres/test/contract-builder/full-text-index.test.ts
  • packages/3-extensions/postgres/test/contract-builder/numeric-default-scale.test.ts
  • packages/3-extensions/postgres/test/contract-builder/values-as-postgres-prints.test.ts
  • packages/3-extensions/postgres/test/postgres-serverless.test.ts
  • packages/3-extensions/postgres/test/psl-namespace-qualifier-routing.test.ts
  • packages/3-extensions/postgres/test/raw-sql-composition.test.ts
  • packages/3-extensions/sql-orm-client/README.md
  • packages/3-extensions/sql-orm-client/src/aggregate-codecs.ts
  • packages/3-extensions/sql-orm-client/src/aggregate-empty-result.ts
  • packages/3-extensions/sql-orm-client/src/collection-dispatch.ts
  • packages/3-extensions/sql-orm-client/src/collection.ts
  • packages/3-extensions/sql-orm-client/test/collection-dispatch.test.ts
  • packages/3-extensions/sql-orm-client/test/collection-row-query.test.ts
  • packages/3-extensions/sql-orm-client/test/contributed-aggregates.test.ts
  • packages/3-extensions/sql-orm-client/test/helpers.ts
  • packages/3-extensions/sql-orm-client/test/test-codec.ts
  • packages/3-extensions/sqlite/test/contract-builder/data-type-assembly.test.ts
  • packages/3-extensions/sqlite/test/contract-builder/default-encoding.test.ts
  • packages/3-extensions/supabase/scripts/generate-contract.ts
  • packages/3-extensions/supabase/test/brownfield-infer.integration.test.ts
  • packages/3-extensions/supabase/test/infer-cross-space-fk.integration.test.ts
  • packages/3-extensions/supabase/test/supabase-runtime-fixtures.ts
  • packages/3-mongo-target/1-mongo-target/src/core/bson-codec-helpers.ts
  • packages/3-mongo-target/1-mongo-target/src/core/bson-scalar-helpers.ts
  • packages/3-mongo-target/1-mongo-target/src/core/codecs.ts
  • packages/3-mongo-target/1-mongo-target/src/core/data-types.ts
  • packages/3-mongo-target/1-mongo-target/test/codecs.bson-scalars.test.ts
  • packages/3-mongo-target/1-mongo-target/test/codecs.bson.test.ts
  • packages/3-mongo-target/1-mongo-target/test/codecs.bson.types.test-d.ts
  • packages/3-mongo-target/1-mongo-target/test/codecs.contract-json-forms.test.ts
  • packages/3-mongo-target/1-mongo-target/test/codecs.int64-number.test.ts
  • packages/3-mongo-target/1-mongo-target/test/codecs.json.test.ts
  • packages/3-mongo-target/1-mongo-target/test/codecs.test.ts
  • packages/3-mongo-target/1-mongo-target/test/contract-json.ts
  • packages/3-mongo-target/1-mongo-target/test/data-type-spellings.test.ts
  • packages/3-mongo-target/1-mongo-target/test/prisma6-binding.test.ts
  • packages/3-mongo-target/1-mongo-target/test/vector-data-type-reader.test.ts
  • packages/3-mongo-target/2-mongo-adapter/README.md
  • packages/3-mongo-target/2-mongo-adapter/src/resolve-value.ts
  • packages/3-mongo-target/2-mongo-adapter/test/lowering.test.ts
  • packages/3-mongo-target/2-mongo-adapter/test/mongo-adapter-ctx.test.ts
  • packages/3-mongo-target/2-mongo-adapter/test/mongo-adapter.test.ts
  • packages/3-mongo-target/2-mongo-adapter/test/resolve-value-ctx.test.ts
  • packages/3-mongo-target/2-mongo-adapter/test/resolve-value.test.ts
  • packages/3-targets/3-targets/postgres/README.md
  • packages/3-targets/3-targets/postgres/src/core/aggregates.ts
  • packages/3-targets/3-targets/postgres/src/core/authoring.ts
  • packages/3-targets/3-targets/postgres/src/core/codec-descriptor.ts
  • packages/3-targets/3-targets/postgres/src/core/codec-helpers.ts
  • packages/3-targets/3-targets/postgres/src/core/codecs.ts
  • packages/3-targets/3-targets/postgres/src/core/data-type-entries.ts
  • packages/3-targets/3-targets/postgres/src/core/data-type-values.ts
  • packages/3-targets/3-targets/postgres/src/core/data-types.ts
  • packages/3-targets/3-targets/postgres/src/core/date-codecs.ts
  • packages/3-targets/3-targets/postgres/src/core/date-time-ddl-text.ts
  • packages/3-targets/3-targets/postgres/src/core/date-time-stored-text.ts
  • packages/3-targets/3-targets/postgres/src/core/default-normalizer.ts
  • packages/3-targets/3-targets/postgres/src/core/migrations/column-ddl-rendering.ts
  • packages/3-targets/3-targets/postgres/src/core/migrations/planner-ddl-builders.ts
  • packages/3-targets/3-targets/postgres/src/core/migrations/planner-sql-checks.ts
  • packages/3-targets/3-targets/postgres/src/core/migrations/planner.ts
  • packages/3-targets/3-targets/postgres/src/core/migrations/postgres-contract-to-schema.ts
  • packages/3-targets/3-targets/postgres/src/core/migrations/postgres-migration.ts
  • packages/3-targets/3-targets/postgres/src/core/migrations/safe-widenings.ts
  • packages/3-targets/3-targets/postgres/src/core/migrations/working-schema.ts
  • packages/3-targets/3-targets/postgres/src/core/postgres-year-text.ts
  • packages/3-targets/3-targets/postgres/src/core/prisma7-binding.ts
  • packages/3-targets/3-targets/postgres/src/core/prisma7-temporal-defaults.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-infer/infer-default-codec.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-infer/infer-model-blocks.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-infer/infer-psl-contract.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-infer/infer-read-defaults.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-infer/infer-sql-text.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-infer/json-exact-numbers.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-infer/junction-relation-field-names.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-infer/postgres-default-mapping.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-print/column-defaults.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-print/column-types.ts
  • packages/3-targets/3-targets/postgres/src/core/psl-print/scalar-fields.ts
  • packages/3-targets/3-targets/postgres/src/core/stored-inet.ts
  • packages/3-targets/3-targets/postgres/src/core/temporal-codec-helpers.ts
  • packages/3-targets/3-targets/postgres/src/core/temporal-codecs.ts
  • packages/3-targets/3-targets/postgres/src/core/temporal-string-codecs.ts
  • packages/3-targets/3-targets/postgres/src/exports/codec-types.ts
  • packages/3-targets/3-targets/postgres/src/exports/codecs.ts
  • packages/3-targets/3-targets/postgres/src/exports/control.ts
  • packages/3-targets/3-targets/postgres/src/exports/default-normalizer.ts
  • packages/3-targets/3-targets/postgres/src/exports/planner-ddl-builders.ts
  • packages/3-targets/3-targets/postgres/test/aggregate-empty-results.test.ts
  • packages/3-targets/3-targets/postgres/test/bytea-canonical-form.test.ts
  • packages/3-targets/3-targets/postgres/test/canonical-integer-text.integration.test.ts
  • packages/3-targets/3-targets/postgres/test/canonical-numeric.integration.test.ts
  • packages/3-targets/3-targets/postgres/test/codec-decode-json-forms.printed-text.test.ts
  • packages/3-targets/3-targets/postgres/test/codec-decode-json-forms.test.ts
  • packages/3-targets/3-targets/postgres/test/codec-native-types.test.ts
  • packages/3-targets/3-targets/postgres/test/codec-strictness.test.ts
  • packages/3-targets/3-targets/postgres/test/codecs-class.test.ts
  • packages/3-targets/3-targets/postgres/test/codecs-runtime-and-helpers.test.ts
  • packages/3-targets/3-targets/postgres/test/codecs.test.ts
  • packages/3-targets/3-targets/postgres/test/contract-json.ts
  • packages/3-targets/3-targets/postgres/test/data-type-entries.date-time-tags.test.ts
  • packages/3-targets/3-targets/postgres/test/data-type-entries.test.ts
  • packages/3-targets/3-targets/postgres/test/data-type-readers.test.ts
  • packages/3-targets/3-targets/postgres/test/data-types.test.ts
  • packages/3-targets/3-targets/postgres/test/date-codec-wiring.test-d.ts
  • packages/3-targets/3-targets/postgres/test/date-codecs.test.ts
  • packages/3-targets/3-targets/postgres/test/date-time-canonical-form.dates.test.ts
  • packages/3-targets/3-targets/postgres/test/date-time-canonical-form.times.test.ts
  • packages/3-targets/3-targets/postgres/test/date-time-codecs.canonical-form.test.ts
  • packages/3-targets/3-targets/postgres/test/date-time-codecs.infinity.test.ts
  • packages/3-targets/3-targets/postgres/test/default-fidelity.integration.test.ts
  • packages/3-targets/3-targets/postgres/test/default-fidelity.rows.ts
  • packages/3-targets/3-targets/postgres/test/default-normalizer.array-constructors.test.ts
  • packages/3-targets/3-targets/postgres/test/default-normalizer.array-literals.test.ts
  • packages/3-targets/3-targets/postgres/test/default-normalizer.bytea.test.ts
  • packages/3-targets/3-targets/postgres/test/default-normalizer.functions.test.ts
  • packages/3-targets/3-targets/postgres/test/default-normalizer.integration.test.ts
  • packages/3-targets/3-targets/postgres/test/default-normalizer.scalar-literals.test.ts
  • packages/3-targets/3-targets/postgres/test/default-normalizer.test.ts
  • packages/3-targets/3-targets/postgres/test/errors.test.ts
  • packages/3-targets/3-targets/postgres/test/fixtures/postgres-data-type-support.ts
  • packages/3-targets/3-targets/postgres/test/index-types.test.ts
  • packages/3-targets/3-targets/postgres/test/integer-representation-codecs.test.ts
  • packages/3-targets/3-targets/postgres/test/list-decoder.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/alter-type-check-text.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/authored-default-rendering.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/column-ddl-rendering.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/contract-to-postgres-database-schema-node.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/date-time-default-ddl.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/full-text-index-planning.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/full-text-index-schema-node.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/planner-ddl-array-defaults.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/planner.table-name-case-guard.test.ts
  • packages/3-targets/3-targets/postgres/test/migrations/sql-text-canonical-planner.test.ts
  • packages/3-targets/3-targets/postgres/test/now-generators.test.ts
  • packages/3-targets/3-targets/postgres/test/postgres-codec-descriptor.test-d.ts
  • packages/3-targets/3-targets/postgres/test/postgres-codec-descriptor.test.ts
  • packages/3-targets/3-targets/postgres/test/postgres-year-text.integration.test.ts
  • packages/3-targets/3-targets/postgres/test/postgres-year-text.test.ts
  • packages/3-targets/3-targets/postgres/test/prisma7-binding.literal-forms.test.ts
  • packages/3-targets/3-targets/postgres/test/prisma7-temporal-defaults.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/fixtures.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/infer-column-types.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/infer-foreign-key-backing.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/infer-parse-emit.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/infer-policy-emission.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/infer-psl-contract-described-contracts.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/infer-psl-contract.enum-adoption.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/infer-psl-contract.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/infer-sql-expression-literals.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl.round-trip.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.check.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.core.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.data-type-defaults.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.defaults-and-types.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.enums.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.list-element-nullability.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.literal-defaults.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.naming-and-constraints.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.nullable-list.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.relations.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.top-level-blocks.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-infer/junction-relation-field-names.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-native-enum-authoring.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-pg-enum-column.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-policy-predicates.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-print/build-context.ts
  • packages/3-targets/3-targets/postgres/test/psl-print/column-defaults.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-print/refusals-fields.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-print/row-level-security.test.ts
  • packages/3-targets/3-targets/postgres/test/psl-role-authoring.test.ts
  • packages/3-targets/3-targets/postgres/test/session-output-styles.test.ts
  • packages/3-targets/3-targets/postgres/test/sql-expression-places.test.ts
  • packages/3-targets/3-targets/postgres/test/stored-inet.integration.test.ts
  • packages/3-targets/3-targets/postgres/test/stored-inet.test.ts
  • packages/3-targets/3-targets/postgres/test/stored-uuid.integration.test.ts
  • packages/3-targets/3-targets/postgres/test/stored-uuid.test.ts
  • packages/3-targets/3-targets/postgres/test/temporal-codecs.test.ts
  • packages/3-targets/3-targets/postgres/test/temporal-string-codecs.test.ts
  • packages/3-targets/3-targets/postgres/test/temporal-unavailable.test.ts
  • packages/3-targets/3-targets/postgres/test/text-timestamp-codec-types.test-d.ts
  • packages/3-targets/3-targets/sqlite/README.md
  • packages/3-targets/3-targets/sqlite/src/core/aggregates.ts
  • packages/3-targets/3-targets/sqlite/src/core/codec-descriptor.ts
  • packages/3-targets/3-targets/sqlite/src/core/codecs.ts
  • packages/3-targets/3-targets/sqlite/src/core/data-type-entries.ts
  • packages/3-targets/3-targets/sqlite/src/core/data-types.ts
  • packages/3-targets/3-targets/sqlite/src/core/default-normalizer.ts
  • packages/3-targets/3-targets/sqlite/src/core/migrations/column-ddl-rendering.ts
  • packages/3-targets/3-targets/sqlite/src/core/migrations/diff-database-schema.ts
  • packages/3-targets/3-targets/sqlite/src/core/migrations/planner-ddl-builders.ts
  • packages/3-targets/3-targets/sqlite/src/core/migrations/planner-fill-values.ts
  • packages/3-targets/3-targets/sqlite/src/core/migrations/planner.ts
  • packages/3-targets/3-targets/sqlite/src/core/migrations/working-schema.ts
  • packages/3-targets/3-targets/sqlite/src/core/sqlite-contract-serializer.ts
  • packages/3-targets/3-targets/sqlite/src/exports/default-normalizer.ts
  • packages/3-targets/3-targets/sqlite/test/aggregate-empty-results.test.ts
  • packages/3-targets/3-targets/sqlite/test/codec-decode-json-forms.test.ts
  • packages/3-targets/3-targets/sqlite/test/codec-strictness.test.ts
  • packages/3-targets/3-targets/sqlite/test/codecs.test.ts
  • packages/3-targets/3-targets/sqlite/test/contract-json.ts
  • packages/3-targets/3-targets/sqlite/test/data-type-authoring-tags.test.ts
  • packages/3-targets/3-targets/sqlite/test/data-type-declarations.test.ts
  • packages/3-targets/3-targets/sqlite/test/data-type-entries.test.ts
  • packages/3-targets/3-targets/sqlite/test/data-type-inventory.test.ts
  • packages/3-targets/3-targets/sqlite/test/data-types.test.ts
  • packages/3-targets/3-targets/sqlite/test/datetime-canonical-form.test.ts
  • packages/3-targets/3-targets/sqlite/test/datetime-from-wire-time-zone.test.ts
  • packages/3-targets/3-targets/sqlite/test/default-normalizer.test.ts
  • packages/3-targets/3-targets/sqlite/test/fixtures/sqlite-contract.d.ts
  • packages/3-targets/3-targets/sqlite/test/fixtures/sqlite-contract.json
  • packages/3-targets/3-targets/sqlite/test/integer-representation-codecs.test.ts
  • packages/3-targets/3-targets/sqlite/test/json-canonical-form.test.ts
  • packages/3-targets/3-targets/sqlite/test/migrations/column-ddl-rendering.test.ts
  • packages/3-targets/3-targets/sqlite/test/migrations/fill-values.execution.test.ts
  • packages/3-targets/3-targets/sqlite/test/plan-diff-defaults.test.ts
  • packages/3-targets/3-targets/sqlite/test/planner-ddl-builders.test.ts
  • packages/3-targets/3-targets/sqlite/test/sqlite-built-in-codec-descriptors.test-d.ts
  • packages/3-targets/3-targets/sqlite/test/sqlite-built-in-codec-descriptors.test.ts
  • packages/3-targets/3-targets/sqlite/test/sqlite-codec-descriptor.test-d.ts
  • packages/3-targets/3-targets/sqlite/test/sqlite-codec-descriptor.test.ts
  • packages/3-targets/3-targets/sqlite/test/sqlite-schema-verifier.test.ts
  • packages/3-targets/3-targets/sqlite/test/structured-errors.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/README.md
  • packages/3-targets/6-adapters/postgres-codec-testkit/src/index.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/aggregate-defaults.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/aggregate-matrix.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/aggregate-resolution.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/array-lift-conformance.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/codec-conformance.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/codec-conformance/cases.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/date-time-text.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/interval-runtime-read.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/runtime-connection.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/temporal-flat-nested-agreement.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/text-array-read.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/type-params.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/uuid-input.integration.test.ts
  • packages/3-targets/6-adapters/postgres-codec-testkit/test/value-round-trip.integration.test.ts
  • packages/3-targets/6-adapters/postgres/src/core/control-adapter.ts
  • packages/3-targets/6-adapters/postgres/src/core/sql-renderer.ts
  • packages/3-targets/6-adapters/postgres/src/exports/control.ts
  • packages/3-targets/6-adapters/postgres/test/control-adapter.defaults.test.ts
  • packages/3-targets/6-adapters/postgres/test/control-adapter.test.ts
  • packages/3-targets/6-adapters/postgres/test/ddl-add-column-lowering.test.ts
  • packages/3-targets/6-adapters/postgres/test/ddl-create-table-lowering.test.ts
  • packages/3-targets/6-adapters/postgres/test/ddl-date-time-default-lowering.test.ts
  • packages/3-targets/6-adapters/postgres/test/ddl-non-finite-float-defaults.test.ts
  • packages/3-targets/6-adapters/postgres/test/helpers/postgres-data-type-support.ts
  • packages/3-targets/6-adapters/postgres/test/lower-to-execute-request.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/native-enum-add-value.real-postgres.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/native-enum-infer-adoption.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/native-enum-lifecycle-e2e.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/op-factory-call.lowering.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/planner-ddl-builders.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/planner.list-literal-defaults.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/planner.reconciliation.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/schema-verify.cast-literal-defaults.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/schema-verify.default-read-by-codec.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/migrations/schema-verify.expression-default-text.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/postgres-codec-registry-composition.test.ts
  • packages/3-targets/6-adapters/postgres/test/scalar-list-codec-roundtrip.integration.test.ts
  • packages/3-targets/6-adapters/postgres/test/sql-renderer.cast-policy.test.ts
  • packages/3-targets/6-adapters/postgres/test/test-codec.ts
  • packages/3-targets/6-adapters/sqlite-codec-testkit/README.md
  • packages/3-targets/6-adapters/sqlite-codec-testkit/src/index.ts
  • packages/3-targets/6-adapters/sqlite-codec-testkit/test/aggregate-defaults.integration.test.ts
  • packages/3-targets/6-adapters/sqlite-codec-testkit/test/codec-conformance.integration.test.ts
  • packages/3-targets/6-adapters/sqlite-codec-testkit/test/codec-conformance/cases.ts
  • packages/3-targets/6-adapters/sqlite-codec-testkit/test/value-round-trip.integration.test.ts
  • packages/3-targets/6-adapters/sqlite/D1-Support-Plan.md
  • packages/3-targets/6-adapters/sqlite/src/core/control-adapter.ts
  • packages/3-targets/6-adapters/sqlite/src/exports/control.ts
  • packages/3-targets/6-adapters/sqlite/test/codecs.test.ts
  • packages/3-targets/6-adapters/sqlite/test/control-adapter.test.ts
  • packages/3-targets/6-adapters/sqlite/test/ddl-non-finite-float-defaults.test.ts
  • packages/3-targets/6-adapters/sqlite/test/lower-to-execute-request.test.ts
  • packages/3-targets/6-adapters/sqlite/test/migrations/data-type-verify.test.ts
  • packages/3-targets/6-adapters/sqlite/test/migrations/expression-default-text.test.ts
  • packages/3-targets/6-adapters/sqlite/test/migrations/now-default.integration.test.ts
  • packages/3-targets/6-adapters/sqlite/test/render-column-default.test.ts
  • packages/3-targets/6-adapters/sqlite/test/sqlite-codec-registry-composition.test.ts
  • packages/3-targets/6-adapters/sqlite/test/structured-errors.test.ts
  • packages/9-public/@prisma/orm-target-postgres/test/temporal-fallback-entries.test.ts
  • scripts/codemods/rewrite-sql-strings.mjs
  • scripts/codemods/rewrite-sql-strings.test.mjs
  • skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.17-to-8.0.0-rc.18/scripts/sql-expression-literals-psl/rewrite-sql-strings.mjs
  • test/e2e/framework/test/sqlite/migrations/default-drift.test.ts
  • test/e2e/framework/test/sqlite/migrations/harness.ts
  • test/e2e/framework/test/sqlite/migrations/widening.test.ts
  • test/integration/test/authoring/attribute-specs.lsp-consumability.test.ts
  • test/integration/test/authoring/data-type-value.test.ts
  • test/integration/test/authoring/defaults-on-existing-tables.integration.test.ts
  • test/integration/test/authoring/lsp-sql-completion-in-blocks.integration.test.ts
  • test/integration/test/authoring/parity/default-date-time-sqlite/expected.contract.json
  • test/integration/test/authoring/parity/default-date-time-sqlite/schema.prisma
  • test/integration/test/authoring/parity/default-date-time-types/schema.prisma
  • test/integration/test/authoring/psl-defaults-apply-and-verify.integration.test.ts
  • test/integration/test/authoring/psl-defaults-read-by-codec.integration.test.ts
  • test/integration/test/authoring/psl-index-type-options.integration.test.ts
  • test/integration/test/authoring/psl-numeric-default-scale.integration.test.ts
  • test/integration/test/authoring/psl.sqlite-written-values.test.ts
  • test/integration/test/authoring/sqlite-blob-defaults.test.ts
  • test/integration/test/cli-journeys/bytea-defaults.e2e.test.ts
  • test/integration/test/cli-journeys/control-plane-commands-without-temporal.e2e.test.ts
  • test/integration/test/cli-journeys/date-time-default-canonical-form.e2e.test.ts
  • test/integration/test/cli-journeys/defaults-read-by-codec.e2e.test.ts
  • test/integration/test/cli-journeys/defaults-read-by-codec.sqlite.e2e.test.ts
  • test/integration/test/cli-journeys/infer-roundtrip-fidelity.brace-array-defaults.e2e.test.ts
  • test/integration/test/cli-journeys/infer-roundtrip-fidelity.e2e.test.ts
  • test/integration/test/cli-journeys/infer-roundtrip-fidelity.prisma7-defaults.e2e.test.ts
  • test/integration/test/cli-journeys/migration-ts-column-defaults.e2e.test.ts
  • test/integration/test/cli-journeys/native-enum-adoption.e2e.test.ts
  • test/integration/test/cli-journeys/stale-contract-default-existing-tables.e2e.test.ts
  • test/integration/test/cli-journeys/stale-contract-default.e2e.test.ts
  • test/integration/test/control-plane-libraries-without-temporal.e2e.test.ts
  • test/integration/test/cross-package/cross-family-codec.test.ts
  • test/integration/test/cross-package/postgres-alter-type-check.test.ts
  • test/integration/test/cross-package/test-codec.ts
  • test/integration/test/date-time-defaults/_fixture-before-canonical-form/contract-with-tags.prisma
  • test/integration/test/date-time-defaults/psl-date-time-defaults.integration.test.ts
  • test/integration/test/date-time-defaults/sqlite-date-time-defaults.integration.test.ts
  • test/integration/test/family.schema-verify.full-text-index.integration.test.ts
  • test/integration/test/mongo/interpreter.enum.test.ts
  • test/integration/test/mongo/migration-psl-authoring.test.ts
  • test/integration/test/mongo/runtime/decode.integration.test.ts
  • test/integration/test/mongo/runtime/mongo-execution-stack.test.ts
  • test/integration/test/mongo/target-runner/runner-polymorphism.test.ts
  • test/integration/test/number-defaults/psl-number-defaults.integration.test.ts
  • test/integration/test/planner-golden/manifest.json
  • test/integration/test/prisma7-source/implicit-many-to-many-names.integration.test.ts
  • test/integration/test/prisma7-source/supported.integration.test.ts
  • test/integration/test/psl-infer/marked-types-round-trip.integration.test.ts
  • test/integration/test/psl-print/every-postgres-contract-roundtrip.integration.test.ts
  • test/integration/test/psl-print/json-scalar-default-print.integration.test.ts
  • test/integration/test/psl-print/number-default-print.integration.test.ts
  • test/integration/test/scalar-lists/psl-list-roundtrip.integration.test.ts
  • test/integration/test/sql-builder/full-text-index-ddl.ts
  • test/integration/test/sql-orm-client/connection-release.test.ts
  • test/integration/test/sql-orm-client/contributed-aggregates.test.ts
  • test/integration/test/sql-orm-client/include-codec-canonical-json.test.ts
  • test/integration/test/sql-orm-client/include-codecs.test.ts
  • test/integration/test/sql-orm-client/integer-representation-sqlite.test.ts
  • test/integration/test/sql-orm-client/integer-representation.test.ts
  • test/integration/test/sql-orm-client/sqlite-float-non-finite-include.test.ts
  • test/integration/test/sql-orm-client/sqlite-include-canonical-json.test.ts
  • test/integration/test/sql-orm-client/sqlite-mistyped-column-include.test.ts
  • test/integration/test/upgrade-instructions/data-type-values/data-type-values-live.test.ts
  • test/integration/test/upgrade-instructions/data-type-values/data-type-values.test.ts
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/after/migrations/app/20260101T0000_initial/migration.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/after/migrations/app/20260101T0000_initial/migration.ts
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/after/migrations/app/20260101T0000_initial/ops.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/after/migrations/app/refs/head.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/after/migrations/snapshots/be4174af061494b515cb3031f75051235fd9307ab05a00c78b5b017c1578b32a/contract.d.ts
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/after/migrations/snapshots/be4174af061494b515cb3031f75051235fd9307ab05a00c78b5b017c1578b32a/contract.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/after/src/prisma/contract.d.ts
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/after/src/prisma/contract.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/before/migrations/app/20260101T0000_initial/migration.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/before/migrations/app/20260101T0000_initial/migration.ts
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/before/migrations/app/20260101T0000_initial/ops.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/before/migrations/app/refs/head.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/before/migrations/snapshots/e12144f8cb1dd3d315b65f0098cc5ac938bbb6e4f6706a733a1a9f9194ef614b/contract.d.ts
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/before/migrations/snapshots/e12144f8cb1dd3d315b65f0098cc5ac938bbb6e4f6706a733a1a9f9194ef614b/contract.json
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/before/src/prisma/contract.d.ts
  • test/integration/test/upgrade-instructions/data-type-values/fixtures/sqlite-project/before/src/prisma/contract.json
  • test/integration/test/upgrade-instructions/data-type-values/test-helpers.ts
  • test/integration/test/uuid-defaults/uuid-defaults.integration.test.ts
  • test/integration/test/value-objects/value-object-defaults.integration.test.ts
  • test/integration/test/value-objects/value-objects.integration.test.ts
  • upgrade-instructions/pending/data-type-values/app/instructions.md
  • upgrade-instructions/pending/data-type-values/app/scripts/data-type-values.ts
  • upgrade-instructions/pending/data-type-values/extension/instructions.md
  • upgrade-instructions/releases/8.0.0-rc.17-to-8.0.0-rc.18/sources/sql-expression-literals-psl/app/scripts/rewrite-sql-strings.mjs
  • upgrade-instructions/releases/8.0.0-rc.17-to-8.0.0-rc.18/sources/sql-expression-literals-psl/extension/scripts/rewrite-sql-strings.mjs

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@prisma/orm-extension-arktype-json

npm i https://pkg.pr.new/@prisma/orm-extension-arktype-json@30750

@prisma/orm-extension-middleware-cache

npm i https://pkg.pr.new/@prisma/orm-extension-middleware-cache@30750

@prisma/orm-extension-paradedb

npm i https://pkg.pr.new/@prisma/orm-extension-paradedb@30750

@prisma/orm-extension-pgvector

npm i https://pkg.pr.new/@prisma/orm-extension-pgvector@30750

@prisma/orm-extension-postgis

npm i https://pkg.pr.new/@prisma/orm-extension-postgis@30750

@prisma/orm-extension-supabase

npm i https://pkg.pr.new/@prisma/orm-extension-supabase@30750

@prisma/orm-family-mongo

npm i https://pkg.pr.new/@prisma/orm-family-mongo@30750

@prisma/orm-family-sql

npm i https://pkg.pr.new/@prisma/orm-family-sql@30750

@prisma/orm-framework

npm i https://pkg.pr.new/@prisma/orm-framework@30750

@prisma/orm-mongo

npm i https://pkg.pr.new/@prisma/orm-mongo@30750

@prisma/orm-postgres

npm i https://pkg.pr.new/@prisma/orm-postgres@30750

@prisma/orm-sqlite

npm i https://pkg.pr.new/@prisma/orm-sqlite@30750

@prisma/orm-target-mongo

npm i https://pkg.pr.new/@prisma/orm-target-mongo@30750

@prisma/orm-target-postgres

npm i https://pkg.pr.new/@prisma/orm-target-postgres@30750

@prisma/orm-target-sqlite

npm i https://pkg.pr.new/@prisma/orm-target-sqlite@30750

@prisma/orm-toolchain

npm i https://pkg.pr.new/@prisma/orm-toolchain@30750

commit: 9fe02a8

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
postgres / no-emit 250.05 KB (+0.87% 🔺)
postgres / emit 220.89 KB (+0.68% 🔺)
mongo / no-emit 201.66 KB (+0.52% 🔺)
mongo / emit 178.52 KB (+0.47% 🔺)
cf-worker / no-emit 311.18 KB (+0.78% 🔺)
cf-worker / emit 278.7 KB (+0.68% 🔺)

…, as every CLI path does

SQLite introspection reads a literal default with the column's codec only
when it is given the contract; without it the default keeps its raw
text and compares unequal to the contract's value. The harness verified
without it. Every product path that verifies passes the contract:
db verify, db init and db update, migrate, and the migration runner's
own post-apply check. db schema and contract infer introspect without
one but do not verify. So the harness now passes the destination
contract, as db update does.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…atform reads it

node:sqlite throws for an INTEGER past 2^53 when it is not asked for a
bigint, but on CI's Linux it returns -2^63, the one value whose
magnitude int64 cannot hold, as a number, which fromWire refuses
(row-from-wire-rejects); on macOS it throws (row-execution). Both are
right for their platform, so the case asks node:sqlite which it does and
records that kind. The deferred note says the same.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… the framework printer does

The codemod keeps a copy of the tag printer for the rc.17 upgrade. The
framework printer now doubles a backslash only before another backslash
or at the end of a backtick body, where it would be read as an escape;
the copy doubled every backslash. Both spellings read back as the same
text, so the change only makes the codemod print what contract print
prints. The parity test gains a doubling case, and the copies the upgrade
instructions carry, which a test holds byte for byte to this script,
follow.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… commit on main

The index-name list on line 113 of the 2026-10-07 migration statements
QA report matches generic-api-key. It was ignored under the commit that
added it on its branch; on main the file came in through squash commit
994aa73, so the same finding is ignored under that commit too.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…a-type-values

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

# Conflicts:
#	packages/3-targets/6-adapters/postgres/src/core/control-adapter.ts
#	packages/3-targets/6-adapters/sqlite/src/core/control-adapter.ts
#	test/integration/test/planner-golden/manifest.json
…re this branch keeps it

#30752 classes this.setDefault as widening when the start contract gives
the column a default, and read the start schema column's raw default
text. On this branch the schema built from a contract carries the
default as resolvedDefault, and its raw text only on the introspected
side, so every setDefault was additive. It now reads resolvedDefault.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…a-type-values

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

# Conflicts:
#	packages/1-framework/1-core/framework-components/test/codec-types.types.test-d.ts
#	packages/1-framework/1-core/framework-components/test/data-type.test.ts
#	packages/1-framework/3-tooling/cli/test/config-types.test.ts
#	packages/2-mongo-family/1-foundation/mongo-codec/test/codecs-ctx.test.ts
#	packages/2-sql/4-lanes/relational-core/test/ast/codec-factory-ctx.test.ts
#	packages/2-sql/4-lanes/relational-core/test/ast/codec-factory-ctx.types.test-d.ts
#	packages/2-sql/4-lanes/relational-core/test/ast/codec-factory.test.ts
#	packages/2-sql/4-lanes/relational-core/test/ast/codec-factory.types.test-d.ts
#	packages/2-sql/4-lanes/relational-core/test/ast/sql-codec-helpers.test.ts
#	packages/3-extensions/arktype-json/test/arktype-json-codec.test.ts
#	packages/3-extensions/pgvector/test/codecs.test.ts
#	packages/3-extensions/pgvector/test/data-types.test.ts
#	packages/3-extensions/postgis/test/codecs.test.ts
#	packages/3-mongo-target/1-mongo-target/test/codecs.test.ts
#	packages/3-targets/3-targets/postgres/test/codecs.test.ts
#	packages/3-targets/3-targets/postgres/test/integer-representation-codecs.test.ts
#	packages/3-targets/3-targets/postgres/test/psl-infer/infer-psl-contract.enum-adoption.test.ts
#	packages/3-targets/3-targets/postgres/test/psl-infer/infer-psl-contract.test.ts
#	packages/3-targets/3-targets/postgres/test/psl-infer/infer-sql-expression-literals.test.ts
#	packages/3-targets/3-targets/postgres/test/psl-infer/inferred-psl/inferred-psl.data-type-defaults.test.ts
#	packages/3-targets/3-targets/postgres/test/psl-policy-authoring.test.ts
#	packages/3-targets/3-targets/sqlite/test/codec-strictness.test.ts
#	packages/3-targets/3-targets/sqlite/test/codecs.test.ts
#	packages/3-targets/3-targets/sqlite/test/data-type-authoring-tags.test.ts
#	packages/3-targets/3-targets/sqlite/test/data-type-declarations.test.ts
#	packages/3-targets/3-targets/sqlite/test/integer-representation-codecs.test.ts
#	packages/3-targets/3-targets/sqlite/test/structured-errors.test.ts
#	packages/3-targets/6-adapters/postgres/test/migrations/data-transform.test.ts
#	packages/3-targets/6-adapters/sqlite/test/codecs.test.ts
@wmadden-electric wmadden-electric changed the title TML-3531: A data type owns its values, and a codec converts them TML-3531: Each default has one stored form, owned by its data type; dates, times and bytes are written with tags Oct 19, 2026
@wmadden
wmadden added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit 9095956 Oct 19, 2026
24 checks passed
@wmadden
wmadden deleted the tml-3531-data-type-values branch October 19, 2026 09:23
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-prisma__orm that referenced this pull request Oct 20, 2026
…the close-out missed (prisma#30797)

This deletes `projects/date-time-default-text/` (`spec.md` and
`plan.md`).

The plan for TML-3302 said to delete this directory at close-out. The
deletion was made on the branch of
[prisma#30532](prisma#30532), but the
squash merge did not carry it, so the files stayed on `main`. They
describe the "canonical form" design for date and time defaults.
TML-3531 ([prisma#30750](prisma#30750))
has since replaced that design, so the files are now wrong as well as
finished. ADR 254 is the current record.

Nothing in the repository links to the directory.

Agent: anubis-80

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
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