-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(driver-adapters): assertions in driver adapters (#4211)
* chore(driver-adapters): remove outdated part of README * test(driver-adapters): turn libquery tests into assertions * chore: merge main, fix conflicts, unify test commands * chore: bump prisma version * fix: README * chore: add pgbouncer=true comment in .envrc.example to trigger "DEALLOCATE ALL" in "@prisma/client" tests with Rust drivers * fix: remove type ignores and update Prisma Client initialisation * chore: address comments * chore: remove unused var * chore: Update query-engine/driver-adapters/js/smoke-test-js/src/client/client.ts Co-authored-by: Alexey Orlenko <[email protected]> * chore: apply nit Co-authored-by: Alexey Orlenko <[email protected]> * chore: remove unused code --------- Co-authored-by: Alexey Orlenko <[email protected]>
- Loading branch information
Showing
9 changed files
with
469 additions
and
245 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,16 +10,20 @@ | |
"prisma:db:push:mysql": "prisma db push --schema ./prisma/mysql/schema.prisma --force-reset", | ||
"prisma:db:execute:mysql": "prisma db execute --schema ./prisma/mysql/schema.prisma --file ./prisma/mysql/commands/type_test/insert.sql", | ||
"prisma:neon": "cross-env-shell DATABASE_URL=\"${JS_NEON_DATABASE_URL}\" \"pnpm prisma:db:push:postgres && pnpm prisma:db:execute:postgres\"", | ||
"neon:ws": "cross-env-shell DATABASE_URL=\"${JS_NEON_DATABASE_URL}\" \"tsx ./src/libquery/neon.ws.ts\"", | ||
"neon:http": "cross-env-shell DATABASE_URL=\"${JS_NEON_DATABASE_URL}\" \"tsx ./src/libquery/neon.http.ts\"", | ||
"neon:ws:libquery": "DATABASE_URL=\"${JS_NEON_DATABASE_URL}\" node --test --loader=tsx ./src/libquery/neon.ws.test.ts", | ||
"neon:http:libquery": "DATABASE_URL=\"${JS_NEON_DATABASE_URL}\" node --test --loader=tsx ./src/libquery/neon.http.test.ts", | ||
"neon:ws:client": "DATABASE_URL=\"${JS_NEON_DATABASE_URL}\" node --test --loader=tsx ./src/client/neon.ws.test.ts", | ||
"neon:http:client": "DATABASE_URL=\"${JS_NEON_DATABASE_URL}\" node --test --loader=tsx ./src/client/neon.http.test.ts", | ||
"neon:ws": "pnpm neon:ws:libquery && pnpm neon:ws:client", | ||
"neon:http": "pnpm neon:http:libquery && pnpm neon:http:client", | ||
"prisma:pg": "cross-env-shell DATABASE_URL=\"${JS_PG_DATABASE_URL}\" \"pnpm prisma:db:push:postgres && pnpm prisma:db:execute:postgres\"", | ||
"pg": "cross-env-shell DATABASE_URL=\"${JS_PG_DATABASE_URL}\" \"tsx ./src/libquery/pg.ts\"", | ||
"pg:libquery": "cross-env-shell DATABASE_URL=\"${JS_PG_DATABASE_URL}\" node --test --loader=tsx ./src/libquery/pg.test.ts", | ||
"pg:client": "DATABASE_URL=\"${JS_PG_DATABASE_URL}\" node --test --loader=tsx ./src/client/pg.test.ts", | ||
"pg": "pnpm pg:libquery && pnpm pg:client", | ||
"prisma:planetscale": "cross-env-shell DATABASE_URL=\"${JS_PLANETSCALE_DATABASE_URL}\" \"pnpm prisma:db:push:mysql && pnpm prisma:db:execute:mysql\"", | ||
"planetscale": "cross-env-shell DATABASE_URL=\"${JS_PLANETSCALE_DATABASE_URL}\" \"tsx ./src/libquery/planetscale.ts\"", | ||
"planetscale:client": "DATABASE_URL=\"${JS_PLANETSCALE_DATABASE_URL}\" node --test --loader=tsx ./src/client/planetscale.test.ts" | ||
"planetscale:libquery": "DATABASE_URL=\"${JS_PLANETSCALE_DATABASE_URL}\" node --test --loader=tsx ./src/libquery/planetscale.test.ts", | ||
"planetscale:client": "DATABASE_URL=\"${JS_PLANETSCALE_DATABASE_URL}\" node --test --loader=tsx ./src/client/planetscale.test.ts", | ||
"planetscale": "pnpm planetscale:libquery && pnpm planetscale:client" | ||
}, | ||
"keywords": [], | ||
"author": "Alberto Schiabel <[email protected]>", | ||
|
@@ -32,7 +36,7 @@ | |
"@jkomyno/prisma-driver-adapter-utils": "workspace:*", | ||
"@neondatabase/serverless": "^0.6.0", | ||
"@planetscale/database": "^1.11.0", | ||
"@prisma/client": "5.3.0-integration-feat-driver-adapters-in-client.1", | ||
"@prisma/client": "5.3.0-integration-feat-driver-adapters-in-client.3", | ||
"pg": "^8.11.3", | ||
"superjson": "^1.13.1", | ||
"undici": "^5.23.0" | ||
|
@@ -41,7 +45,7 @@ | |
"@types/node": "^20.5.1", | ||
"@types/pg": "^8.10.2", | ||
"cross-env": "^7.0.3", | ||
"prisma": "5.3.0-integration-feat-driver-adapters-in-client.1", | ||
"prisma": "5.3.0-integration-feat-driver-adapters-in-client.3", | ||
"tsx": "^3.12.7" | ||
} | ||
} |
This file contains 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
Oops, something went wrong.