【发布时间】:2018-04-17 05:09:54
【问题描述】:
我有一个使用 azure/node 构建的移动应用后端,但我似乎不知道如何增加我的 SQL 数据库连接超时。看起来默认值为 15 秒,我想将其增加到 30。具体来说,连接到数据库的代码如下(使用 azure-mobile-apps 节点包)。谢谢!
var azureMobileApps = require('azure-mobile-apps');
var app = express();
var mobileApp = azureMobileApps({
homePage: true,
swagger: true
});
mobileApp.tables.import('./tables');
mobileApp.api.import('./api');
//This times out after 15 seconds and I want to change it to 30.
mobileApp.tables.initialize()
.then(function () {
app.use(mobileApp);
app.listen(process.env.PORT || 3000);
});
【问题讨论】:
标签: node.js azure azure-sql-database azure-mobile-services