How to use the ormnomnom._connection function in ormnomnom

To help you get started, we’ve selected a few ormnomnom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github npm / oauth2-server-pg / lib / connection.js View on Github external
pg.connect(config.connection, function (err, conn, done) {
    if (err) {
      return deferred.reject(err)
    }
    orm._connection = conn
    return deferred.resolve({connection: conn, release: () => {
      return done()
    }})
  })

ormnomnom

a lightweight orm to silence the orm-y beast

MIT
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis