按照教程,我无法创建模型以允许我手动选择数据源。它会自动选择“db(内存)”
许多数据源是通过“slc loopback:datasource”... datasource.json 创建的,如下所示:
{
"db": {
"name": "db",
"connector": "memory"
},
"accountDB": {
"name": "accountDB",
"connector": "memory"
},
"anotherDB": {
"name": "anotherDB",
"connector": "mysql"
},
"yetAnotherDB": {
"name": "yetAnotherDB",
"connector": "mongodb"
},
"blah2DB": {
"name": "blah2DB",
"connector": "mysql"
}
}
创建模型时:
[?] 输入模型名称:account
[?] 输入模型名称:account
[?] 选择要将帐户附加到的数据源:db(内存)
[?] 通过 REST API 公开帐户?(是/否)
版本信息:
节点--版本 v0.10.31
slc --version
strongloop v2.9.1 (node v0.10.31)
├── strong-build@0.2.1
├─┬ strong-supervisor@1.0.1
│ └── strong-agent@0.4.14
├── node-inspector@0.7.4
├── strong-deploy@0.1.4
├── strong-pm@1.2.0
├── strong-registry@1.1.1
├── nodefly-register@0.3.3
└── generator-loopback@1.3.1