Last active
August 21, 2019 19:53
-
-
Save kdabir/5410986 to your computer and use it in GitHub Desktop.
Setting up hsqldb in groovy scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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)') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!