Closed MahatmaFatalError closed 1 year ago
Hey @MahatmaFatalError , this issue is sitting here with not much attention for a long time already, so I don't really see us diving into a concrete discussion on this topic. I can understand the problem that you describe, but support for this is probably something that should be discussed somewhere else where a lot more people form the SQL space hang out and discuss general tooling for SQL.
jup, understandable
Beforehand: This is not a concrete feature request but a request to start a discussion.
SQL queries are an essential part of many spring boot applications. However, the IDE experience for writing queries is far from good.
I see two major cases:
@Query
orJdbcTemplate
For the static ones, there is basically no IDE support that early prevents errors, be it basic SQL syntax checks or more sophisticated schema validation. For dynamic queries, there is a special MyBatis XML Mapper Editor https://github.com/mybatis/mybatipse which at least improves the way to deal with MyBatis-specific things but still lacks SQL validation. Even preliminary syntax highlighting does not see much progress https://github.com/mybatis/mybatipse/issues/73
What I would like is a functionality for string literals to format, check the syntax based on a chosen SQL dialect and validate against entity classes or a live DB connection or DDL schema file. This configuration would be part of the project metadata.
For dynamic queries basically the same feature set, while this obviously highly depends on the concrete framework.