Support dynamic SQL provider [DATAJDBC-319]
See original GitHub issueSanghyuk Jung opened DATAJDBC-319 and commented
In MyBatis, Dynamic sql is supported by @SelectProvider
http://kamalmeet.com/java/mybatis-using-selectprovider-and-resultmap/ ( updated link)
It would be more convenient if a similar feature is in Spring Data JDBC
No further details from DATAJDBC-319
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Support dynamic SQL provider [DATAJDBC-319] #542 - GitHub
If I understand correctly you want an API for generating SQL dynamically. While this is perfectly reasonable Spring Data JDBC won't offer that....
Read more >Microsoft OLE DB Provider for SQL Server Overview
The provider supports several provider-specific connection parameters in addition to those defined by ADO. As with the ADO connection properties ...
Read more >MyBatis Dynamic SQL
This library is a framework for generating dynamic SQL statements. Think of it as a typesafe SQL templating library, with additional support ......
Read more >Dynamic SQL in SQL Server
In this article, we will review how to construct and execute dynamic SQL statements in SQL Server with different examples.
Read more >SQLProvider - fsprojects on GitHub
These are dynamically loaded at runtime so that the SQL provider project is not ... ShipName // arbitrarily complex projections are supported select...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1
Sanghyuk Jung commented
As I mentioned, MyBatis supports a similar feature, it can be a reference.
Following examples are from http://www.mybatis.org/mybatis-3/java-api.html .
The implementation of MyBatis is at https://github.com/mybatis/mybatis-3/blob/master/src/main/java/org/apache/ibatis/builder/annotation/ProviderSqlSource.java#L106
The ways of MyBatis has the disadvantage of weak inspection at the time of compilation.
An alternative is to define a stricter interface , as shown below.
When infrastructure for semantic SQL generation ( https://jira.spring.io/browse/DATAJDBC-309) is merged in the future, this feature will create a larger synergy.
If the specifications are confirmed here, I am willing to send pull request