0.4.2 • Published 8 years ago

schema-mapper-differ v0.4.2

Weekly downloads
7
License
MIT
Repository
github
Last release
8 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

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.1

9 years ago