Skip to content

Proposal for an Spring integration of the base SQL query externalization library sql-definition-support

License

Notifications You must be signed in to change notification settings

IndabaConsultores/sql-definition-support-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sql-definition-support-spring

Proposal for an Spring integration of the base SQL query externalization library sql-definition-support

First approach

@Configuration
@ComponentScan(basePackages = {"es.indaba.sqld"})
@QueryRepository("es.indaba.sqld.test")
public class TestConfiguration {

}
@Component
public class TestInjectionBean {

    @QueryResolver(name = "query1")
    private String query1;
...

file in class path es/indaba/sqld/test/yaml/ test.ysqld

query1: |
 QUERY1_CONTENT
query2: |
 QUERY2_CONTENT
query5: |
 Select * 
 from table
 where a=1
 and b=?

About

Proposal for an Spring integration of the base SQL query externalization library sql-definition-support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages