detach
db.detach()为关闭数据库连接,如下实例代码:
FireBird.attach(options, function(err, db) {
if (err)
throw err;
db.query('SELECT * FROM a', function(err, result) {
if (err)
throw err;
// IMPORTANT: close the connection
db.detach();
});
});