我看到我的应用程序活动句柄数不断增加.活动句柄的数量究竟是多少?这是我必须要注意防止应用程序崩溃吗?
如何将这样的对象插入两个表Book和Page
var book = {
name: 'Hello',
author: 'World',
pages: [{
pagetitle: 'intro',
book: 8
}, {
pagetitle: 'chaptessr1',
book: 8
}]
};
Run Code Online (Sandbox Code Playgroud) 我在尝试删除另一个表(页面)引用的表(应用程序)时收到此错误.
knex.schema.dropTable("application").exec();
Run Code Online (Sandbox Code Playgroud)
错误是
Possibly unhandled error: cannot drop table application because other objects depend on it
at Connection.parseE (/home/balan/node_modules/pg/lib/connection.js:526:11)
at Connection.parseMessage (/home/balan/node_modules/pg/lib/connection.js:356:17)
at Socket.<anonymous> (/home/balan/node_modules/pg/lib/connection.js:105:22)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:745:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:407:10)
at emitReadable (_stream_readable.js:403:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
Run Code Online (Sandbox Code Playgroud) Service Worker 可以缓存的文件类型是否有任何限制?