Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simple program does not terminate, hangs #293

@hparra

Description

@hparra

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions