Skip to content

Instantly share code, notes, and snippets.

@sureshnath
Created April 2, 2013 10:14
Show Gist options
  • Save sureshnath/5291235 to your computer and use it in GitHub Desktop.
Save sureshnath/5291235 to your computer and use it in GitHub Desktop.
sample h2 memory url and sql scripts to load from class path
DB_URL=jdbc:h2:mem:datasource;MODE=Oracle;INIT=runscript from 'classpath:/sql/h2.creation.sql'
h2.creation.sql
-------------------------
runscript from 'classpath:/testing/beforeclass/001-init.sql'; -- from class path
runscript from '~/001-init.sql'; --from ${user.home}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment