Skip to content

Reimplementation of mappers#5445

Open
AlexBlokh wants to merge 87 commits intobetafrom
codecs
Open

Reimplementation of mappers#5445
AlexBlokh wants to merge 87 commits intobetafrom
codecs

Conversation

@AlexBlokh
Copy link
Copy Markdown
Contributor

@AlexBlokh AlexBlokh commented Mar 5, 2026

  • Codec system for postgres - resolves issues created by differences of data types returned by different drivers or different contexts of query (regular select, JSON object, postgres array). Currently only handles supported by drizzle constructors column types.
  • Optimized query mappers for postgres
  • Opt-in JIT-generated mappers for all dialects
  • Optimized RQBv2 mappers for all dialects
  • Removed RQBv1 (db._query) from postgres
  • Moved pg array utils (makePgArray, parsePgArray) from drizzle-orm/pg-core/utils[/array] to drizzle-orm/pg-core/array
  • Simplified postgres sessions & prepared queries
  • Fixed neon-http bytea data corruption
  • Fixed bun-sql/postgres timestamp timezone truncation, json[b] data double stringification

…, `node-pg` codecs; root level of RQBv2 queries in PG is no longer treated as in-JSON, unless explicitly stated otherwise [other dialects pending], extended test postpone date, generic codecs improvements
…to regular select queries, deleted some deprecated column mappers or overloads [WIP], codec tests for `bun-sql/pg`
…not supported by environment, explicit `noop` flag for mappers
…oper `noop` mapper handling, fixed `pglite` codecs, code cleanup
…ion & old api deprecation notices to custom pg column
…r PG custom columns, extended postpone dates
…orm/pg-core/utils` to `drizzle-orm/pg-core/array`), reworked launchers of import tests
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.

3 participants