I wanted to create a very simple Bookshelf query script, but it refuses to terminate. It just hangs.
I fell back to Knex and stripped down code to just this. Same problem.
var Knex = require('knex');
var knex = Knex.initialize({
client: 'pg',
connection: {
host : '127.0.0.1',
database : 'somedatabase',
}
});
I'm assuming Knex is keeping the process alive. Do I have to explicitly kill the pool, or exit the process? Was there a method to do the former?