Connect to database
How to make connection to Mysql or Postgres using single json configuration
Connection
Create file ./connections/sample-database-connection.json
{
"id": "sample-database-connection",
"type": "sql",
"driver": "mysql", //mysql|postgres
"name": "Sample database name",
"dns": "_databaseUsername_:_databasePassword_@tcp(example.com:3310)/_databaseName_?parseTime=true",
"maxOpenConnections": 100,
"connectionMaxLifetimeSec": 10,
"maxIdleConnections": 30,
"connectionMaxIdleTimeSec": 10
}