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

Daniel Sun updated GROOVY-8175:
-------------------------------
    Summary: MyBatis-like binding variable for GroovySql  (was: MyBatis-like 
bind variable for GroovySql)

> 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)

Reply via email to