Skip to content

Instantly share code, notes, and snippets.

@tomgullo
Created August 16, 2009 15:11
Show Gist options
  • Save tomgullo/168643 to your computer and use it in GitHub Desktop.
Save tomgullo/168643 to your computer and use it in GitHub Desktop.
basic groovy sql
import groovy.sql.Sql
def sql = new Sql(dataSource)
def query = "select * from table"
def rows = sql.rows(query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment