led-liquibase

1.0.1 • Public • Published

Node Liquibase Build Status Coverage Status

Node.js wrap for Liquibase

Install

$ npm install --save liquibase

Usage

const liquibase = require('liquibase');
 
liquibase({
  defaultsFile: 'resources/liquibase/liquibase.properties'
 
  // driver: 'org.postgresql.Driver',
  // classpath: 'lib/postgresql-9.4-1201.jdbc4.jar',
  // changeLogFile: 'resources/liquibase/db.changelog.xml',
  // url: 'jdbc:postgresql://localhost:5432/postgres',
  // username: 'postgres',
  // password: 'admin'
})
.run('update')
.then(() => console.log('success'))
.catch((err) => console.log('fail', err));
const liquibase = require('liquibase');
 
liquibase({
  changeLogFile: 'resources/liquibase/db.changelog.xml',
  url: 'jdbc:postgresql://localhost:5432/postgres',
  username: 'postgres',
  password: 'admin'
})
.run('<action>', '<action-params>')
.then(() => console.log('success'))
.catch((err) => console.log('fail', err));

License

MIT © Pablo De Nadai

Package Sidebar

Install

npm i led-liquibase

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

4.4 kB

Total Files

4

Last publish

Collaborators

  • ledstartupstudio