我需要从 初始化~/myConfig.json
,如下所示:
{
"databaseActive": "production",
"databases": [
{
"name": "localhost",
"PGDB": "asdf",
"PGHOST": "localhost",
"PGPASSWORD": "asdf",
"PGPORT": "5432",
"PGUSER": "asdf"
},
{
"name": "production",
"PGDB": "asdf",
"PGHOST": "asdf.rds.amazonaws.com",
"PGPASSWORD": "asdf",
"PGPORT": "5432",
"PGUSER": "asdf"
}
]
}
这意味着我不能打电话scalikejdbc.config.DBs.setupAll()
。根据 的值,我如何使用此 JSON 文件从适当的数据库设置中初始化 scalikeJDBC databaseActive
?