How to use the postgrator.endConnection function in postgrator

To help you get started, we’ve selected a few postgrator 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 nearform / udaru / scripts / init / database / install_001.js View on Github external
postgrator.migrate('001', function (err, migrations) {
  if (err) {
    console.log(err)
  } else {
    console.log(migrations)
  }
  postgrator.endConnection(function () {
      // connection is closed, or will close in the case of SQL Server
  })
})
github medic / couch2pg / libs / xmlforms / migrator.js View on Github external
postgrator.migrate('201606281159', function(err, migrations) {
        if (err) {
          reject(err);
        } else {
          postgrator.endConnection(function() {
            resolve(migrations);
          });
        }
      });
    });
github medic / couch2pg / libs / xmlforms / index.js View on Github external
postgrator.migrate('201606201000', function(err, migrations) {
      if (err) {
        reject(err);
      } else {
        postgrator.endConnection(function() {
          resolve(migrations);
        });
      }
    });
  });
github CoderDojo / cp-dojos-service / migrate-psql-db.js View on Github external
postgrator.migrate('max', function (err, migrations) {
    postgrator.endConnection(function () {
      return cb(err, migrations);
    });
  });
};

postgrator

A SQL migration tool for SQL people

MIT
Latest version published 1 month ago

Package Health Score

81 / 100
Full package analysis