Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(runtimes): Deno with workarounds #4957

Draft
wants to merge 16 commits into
base: dev
Choose a base branch
from
Draft

Conversation

janpio
Copy link
Contributor

@janpio janpio commented May 17, 2024

Apply some of the workarounds from prisma/prisma#2452 (comment) to a simple project to make Prisma work on Deno CLI.

@janpio janpio changed the base branch from janpio/runtimes to dev May 17, 2024 17:55
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

temporary to only run "runtimes" tests and not all of them for each commit

@Jolg42
Copy link
Contributor

Jolg42 commented May 28, 2024

Looks like library engine works
https://github.com/prisma/ecosystem-tests/actions/runs/9133314941/job/25116525378?pr=4957#step:8:114

Warning: Not implemented: ChildProcess.prototype.disconnect
-----------------------------

run.sh was successful (code 0), running runtimes/deno/test.sh...

Download https://deno.land/[email protected]/testing/asserts.ts
Download https://deno.land/[email protected]/fmt/colors.ts
Download https://deno.land/[email protected]/testing/_diff.ts
Download https://deno.land/[email protected]/testing/_format.ts
running 1 test from ./test.ts
can run query ...
------- output -------
prisma:info Starting a postgresql pool with 5 connections.
prisma:query SELECT "public"."User"."user_id", "public"."User"."email", "public"."User"."name" FROM "public"."User" WHERE 1=1 LIMIT $1 OFFSET $2
prisma:info Starting a postgresql pool with 5 connections.
prisma:query BEGIN
prisma:query SELECT "public"."User"."user_id", "public"."User"."email", "public"."User"."name" FROM "public"."User" WHERE 1=1 LIMIT $1 OFFSET $2
prisma:query SELECT "public"."User"."user_id", "public"."User"."email", "public"."User"."name" FROM "public"."User" WHERE 1=1 OFFSET $1
prisma:query COMMIT
----- output end -----
can run query ... ok (3s)

ok | 1 passed | 0 failed (3s)


finished test.sh (code 0)

@janpio
Copy link
Contributor Author

janpio commented May 28, 2024

Yes, in that old version it did. Newer versions broke it.

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