Skip to content

Instantly share code, notes, and snippets.

@kdabir
Last active August 21, 2019 19:53
Show Gist options
  • Save kdabir/5410986 to your computer and use it in GitHub Desktop.
Save kdabir/5410986 to your computer and use it in GitHub Desktop.
Setting up hsqldb in groovy scripts
@GrabConfig(systemClassLoader=true) @Grab('org.hsqldb:hsqldb:2.2.9') import groovy.sql.Sql
def sql = Sql.newInstance("jdbc:hsqldb:mem:database", "sa", "", "org.hsqldb.jdbcDriver")
println sql.firstRow('VALUES (current_timestamp)')
@akostadinov
Copy link

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment