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

SQL suggestions to raw queries #1378

Open
arthurfiorette opened this issue Feb 8, 2023 · 0 comments
Open

SQL suggestions to raw queries #1378

arthurfiorette opened this issue Feb 8, 2023 · 0 comments
Labels
kind/improvement An improvement to existing feature and code. team/schema Issue for team Schema. tech/typescript Issue for tech TypeScript. topic: autocompletion topic: linting

Comments

@arthurfiorette
Copy link

Problem

Transferred from #1219 (comment)

Its easy to write a wrong model name or have similar problems even with SQL syntax highlighting. If we could autocomplete and suggest model names, field names and all informations that a prisma schema can have, would be awesome!

Suggested solution

prisma.model.$executeRaw`
  UPDATE ${ctrl space -> shows prisma model names}
  SET ${ctrl space -> show fields}
  WHERE ${ctrl space -> show fields}
`

It would be even better if to show a warning if I write a invalid model/field name.

@Druue Druue added kind/improvement An improvement to existing feature and code. topic: linting topic: autocompletion team/schema Issue for team Schema. tech/typescript Issue for tech TypeScript. labels Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement An improvement to existing feature and code. team/schema Issue for team Schema. tech/typescript Issue for tech TypeScript. topic: autocompletion topic: linting
Projects
None yet
Development

No branches or pull requests

2 participants