libraryDependencies += "com.precog" %% "quasar-destination-h2" % <version>
Configuration for the H2 destination has the following JSON format
{
"connectionUri": String
[, "server": {
[ "init": Object }]
[, "tcp": { "args": Array String }]
[, "pg": { "args": Array String }]
}
]
}
connectionUri
: the H2 connection URL without the leadingjdbc:
.server
: (optional) the H2 server configuration:init
: (optional) specifies how to initialize the H2 server. Object has the following format:{ "url": String, "user": String, "password": String, "script": String }
where url is the connection URL to use to initialize the database including the leadingjdbc:
, user is the username to use, password is the password to use and script is the SQL script to initialize the database with.tcp
: (optional) if included a tcp server will be started with the specified args. Please refer to H2 Server docs for the supported args.pg
: (optional) if included a postgres server will be started with the specified args. Please refer to H2 Server docs for the supported args.