Skip to content

Instantly share code, notes, and snippets.

@jsteinshouer
Forked from elpete/Application.cfc
Created June 26, 2017 21:21
Show Gist options
  • Save jsteinshouer/7998fc92e88853b4bea7a778c34b42a1 to your computer and use it in GitHub Desktop.
Save jsteinshouer/7998fc92e88853b4bea7a778c34b42a1 to your computer and use it in GitHub Desktop.
In-memory database for testing
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