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

Introduce better way to manipulate Prisma PSL files #4

Open
tkiapril opened this issue Jul 14, 2023 · 0 comments
Open

Introduce better way to manipulate Prisma PSL files #4

tkiapril opened this issue Jul 14, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@tkiapril
Copy link
Contributor

Currently, we are using awk to remove directives in schema.prisma for embeddable data proxy that are not supported in it. (6ef7b7d#diff-063238bce844b85998f2259b9d6ee46ab1a208a1b8c7cb389d60be21a84d1bc9R15-R27) However, this might be fragile, and might be better if we properly parse the file. Prisma seems to use wasm written in Rust for this: https://github.com/prisma/prisma-engines/blob/main/psl/psl-core/src/reformat.rs#L12

@tkiapril tkiapril added the help wanted Extra attention is needed label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant