Repository navigation
feat(adapter-pg,adapter-neon): Enforce usage of connection pool - #22687
Merged
Merged
Conversation
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
Contributor
size-limit report 📦
|
millsp
reviewed
Jan 17, 2024
millsp
approved these changes
Jan 17, 2024
SevInf
force-pushed
the
feat/enforce-pool
branch
from
January 17, 2024 15:44
21e6636 to
f197e9f
Compare
SevInf
added a commit
that referenced
this pull request
Jan 18, 2024
* 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
SevInf
added a commit
that referenced
this pull request
Jan 18, 2024
…) (#22700) * 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
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapters don't work with non-pooled
Clientinstances. Forpgandneonwe enforce it only on type level, so check won't work for JSprojects. In this PR, we are checking the passed instance and ensuring
it is a
Pool, similarly to what we already do forplanetscale.Fix prisma/team-orm#616