We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
view
type
In the Prisma grammar, the model and the view and type blocks are the same thing, they just differ in a keyword: https://github.com/prisma/prisma-engines/blob/main/psl/schema-ast/src/parser/datamodel.pest#L30
model
We can easily add support for the view and type blocks by reusing the model parser.
Something like this:
model :: Parser Model model = makeModelLikeParser "model" view :: Parser View view = makeModelLikeParser "view" type :: Parser Type type = makeModelLikeParser "type"
The text was updated successfully, but these errors were encountered:
Completed by #2179
Sorry, something went wrong.
No branches or pull requests
In the Prisma grammar, the
model
and theview
andtype
blocks are the same thing, they just differ in a keyword: https://github.com/prisma/prisma-engines/blob/main/psl/schema-ast/src/parser/datamodel.pest#L30We can easily add support for the
view
andtype
blocks by reusing the model parser.Something like this:
The text was updated successfully, but these errors were encountered: