Skip to content

feat(adapter-pg,adapter-neon): Enforce usage of connection pool (#22687) - #22700

Merged
SevInf merged 1 commit into
mainfrom
restore-pool-check
Jan 18, 2024
Merged

SevInf merged 1 commit into
mainfrom
restore-pool-check

Conversation

@SevInf

@SevInf SevInf commented Jan 18, 2024

Copy link
Copy Markdown
Contributor

PR was already reviewed in #22687, this iteration just
fixes PG import without breaking engine executor.

* feat(adapter-pg,adapter-neon): Enforce usage of connection pool

Adapters don't work with non-pooled `Client` instances. For `pg` and
`neon` we enforce it only on type level, so check won't work for JS
projects. In this PR, we are checking the passed instance and ensuring
it is a `Pool`, similarly to what we already do for `planetscale`.

Fix prisma/team-orm#616

* Add test script

* Attempt to unify jest configs #2

* Fix couple of problems
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/library.js 195.28 KB (0%)
packages/client/runtime/library.d.ts 101.06 KB (0%)
packages/client/runtime/binary.js 627.27 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 236.09 KB (0%)
packages/client/runtime/edge-esm.js 235.88 KB (0%)
packages/client/runtime/index-browser.js 33.5 KB (0%)
packages/client/runtime/index-browser.d.ts 11.96 KB (0%)
packages/cli/build/index.js 2.71 MB (0%)

@SevInf
SevInf marked this pull request as ready for review January 18, 2024 15:41
@SevInf
SevInf requested a review from a team as a code owner January 18, 2024 15:41
@SevInf
SevInf requested review from Jolg42, aqrln and millsp and removed request for a team and aqrln January 18, 2024 15:41
@SevInf SevInf added this to the 5.9.0 milestone Jan 18, 2024
@SevInf

SevInf commented Jan 18, 2024

Copy link
Copy Markdown
Contributor Author

confirmed that engines are fine here prisma/prisma-engines#4655

Comment thread helpers/test/presets/default.js Resolved
Comment thread packages/adapter-neon/src/neon.ts Resolved
Comment thread packages/adapter-pg/src/pg.ts Resolved
@SevInf
SevInf merged commit dd9f933 into main Jan 18, 2024
@SevInf
SevInf deleted the restore-pool-check branch January 18, 2024 16:11
Jolg42 added a commit that referenced this pull request Jan 22, 2024
* main:
  chore(deps): update engines to 5.9.0-17.53daea5e19292fbbfc60d3a98b0b811dc848b829 (#22743)
  chore: update @planetscale/database to 1.14.0 (#22709)
  chore(deps): update dependency @codspeed/benchmark.js-plugin to v3 (#22708)
  chore(deps): pin dependencies (#22706)
  chore(deps): update dependency @planetscale/database to v1.14.0 (#22707)
  chore: Fix new-test script (#22716)
  fix(migrate): update tests after fix to #11407 (#22689)
  feat(adapter-pg,adapter-neon): Enforce usage of connection pool (#22687) (#22700)
  revert(client): Revert "feat(adapter-pg,adapter-neon): Enforce usage of connection pool (#22687)" (#22699)
  feat(adapter-pg,adapter-neon): Enforce usage of connection pool (#22687)
  chore(deps): update actions/cache action to v4 (#22697)
  chore: add ability to emit metafiles (#22674)
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.

4 participants