JSPM

liquibase-mysql

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q28219F
  • License MIT

Node.js wrap for Liquibase + Mysql

Package Exports

  • liquibase-mysql

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (liquibase-mysql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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'

  // liquibase: 'lib/liquibase-core-3.5.3.jar',
  // 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