groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Sun (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-8175) MyBatis-like binding variable for GroovySql
Date Fri, 05 May 2017 17:11:04 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-8175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Sun closed GROOVY-8175.
------------------------------
    Resolution: Won't Fix

> MyBatis-like binding variable for GroovySql
> -------------------------------------------
>
>                 Key: GROOVY-8175
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8175
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Daniel Sun
>
> As the code shows, we can bind variables elegantly.
> {code}
>    def sql = Sql.newInstance(...) 
>    sql.eachRow("select * from some_table where some_col=#{someColValue} and some_col2=#{someCol2Value}",
[someColValue:'foo', someCol2Value:'bar']) { row ->
>       println row
>    } 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message