H2 datasource config for an in-memory H2 database
databasedatasourceH2-Database
The code specifies a simple configuration for an H2 in-memory database.
Shortcut: H2datasource
Filename pattern: Application.cfc
// H2 datasource
// Inline datasources are only supported in Lucee.
this.datasource={
class: 'org.h2.Driver'
, bundleName: 'org.h2'
, connectionString: 'jdbc:h2:#getDirectoryFromPath(getCurrentTemplatePath())#/datasource/db;MODE=MySQL'
};