Created
November 29, 2016 15:39
-
-
Save elpete/888d0c0f6f3f31d642b45e8f76ad0b24 to your computer and use it in GitHub Desktop.
In-memory database for testing
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
component displayname="Application" { | |
// Set up an in-memory testing datasource | |
// You may need to install the H2 driver (or Apache Derby, or whatever) | |
this.datasources[ "testing" ] = { | |
class: 'org.h2.Driver', | |
connectionString: 'jdbc:h2:mem:testing;MODE=MySQL', | |
username = "sa" | |
}; | |
this.datasource = "testing"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment