0.4.2 • Published 9 years ago

schema-mapper-differ v0.4.2

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

schema-mapper-differ

Get a list of Changes by comparing 2 Projects.

Build status Docs status Code Climate Dependencies License

Installation

npm install --save schema-mapper-differ

Usage

var differ = require('schema-mapper-differ');

var oldProjects = {};
var projects = {
  '0': {
    name: 'demo',
    version: 0,
    schemas: {
      '1': {
        name: 'users',
        primary: '1',
        columns: {
          '1': {
            name: 'id',
            type: 'uuid'
          }
        }
      }
    }
  }
};

var changes = differ.diffProjects(oldProjects, projects);
console.log(changes);
[
  {
    change: 'project.create',
    projectId: '0',
    project: {
      name: 'demo',
      version: 0,
      schemas: {
        '1': {
          name: 'users',
          primary: '1',
          columns: {
            '1': {
              name: 'id',
              type: 'uuid'
            }
          }
        }
      }
    }
  }
]

API docs

API Docs

Licence

MIT

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.1

10 years ago