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

prisma web with dart #230

Open
rectrick opened this issue Jun 2, 2023 · 3 comments
Open

prisma web with dart #230

rectrick opened this issue Jun 2, 2023 · 3 comments

Comments

@rectrick
Copy link

rectrick commented Jun 2, 2023

Hello, I have been following Prisma for months, but because of my specialization in Flutter, I am working on building an application for editing audio and video using Dart and Flutter. I found that Prisma is very suitable, but my application will support Web and Desktop. Does this image mean that Prisma does not support the Web and will not be ideal for my project?
https://prnt.sc/fNgJY8CfwCD9

@medz
Copy link
Owner

medz commented Jun 3, 2023

@rectrick
Unfortunately, Prisma's binary engine is developed using Rust. Although Data Proxy supports direct calls from the Web, it still needs to solve the CORS problem. And the Prisma engine does not support IndexDB.

I think this requirement can be resolved by submitting to https://github.com/prisma/engines to add IndexDB support and allow compilation of WASM module engines.

However Prisma ORM for Dart supports UniversalEngine package:orm/universal_engine.dart You can choose to build your own Data Proxy compatible service using Prisma engines to use it.

In general, Prisma cannot support the web, if you just want to share the types generated by Prisma on the web side, then you can look forward to the ORM 4 version (I am working hard to make it)

@Litesoulo
Copy link

Hello, any updates on this issue?

@medz
Copy link
Owner

medz commented Apr 14, 2024

@Litesoulo There is no progress because there are too few users of Flutter developing web pages. And Prisma is mainly a back-end ORM, and the front-end has almost no need to directly read the database.

Flutter WEB introduces Prisma to realize at most local SQL requirements such as libsql.js.

Of course, we do not exclude it from entering the front-end web page. But the joining period may be longer.

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

No branches or pull requests

3 participants