[ 
https://issues.apache.org/jira/browse/GROOVY-8175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15998584#comment-15998584
 ] 

Daniel Sun commented on GROOVY-8175:
------------------------------------

OK. I see :-)
Thank you, John.

> 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