Skip to content

Instantly share code, notes, and snippets.

Forked from elpete/Application.cfc
Created June 26, 2017 21:21
What would you like to do?
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