spring-projects / spring-projects/spring-tools

SQL syntax validation

Open
#1,273 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

for: eclipse for: vscode status: needs-discussion theme: spring-data-support type: enhancement
Dominant language
Java
Stars
983
Forks
240
Avg merge
7d 1h
Merged PRs (30d)
7

Description

Currently MySQL grammar is used for semantic tokens and syntax validation for the native queries.
However, there are more flavours of SQL available: PostGres, MariaDB, etc (see https://github.com/antlr/grammars-v4/tree/master/sql)

Perhaps an inference can be made from the classpath JARs to indicate which SQL parser should be used... Perhaps we may want to opt out from supporting native query syntax validation completely (too much for a rather limited use case), perhaps the same is true for semantic tokens... The most commonly used ones might be supported and for the rest no syntax validation... TBD

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the native-query semantic-token and syntax-validation handling; the issue does not define which SQL dialects or opt-out behavior would constitute done.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, mysql, postgresql, sql
Domain
databases, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.