UNPKG

schematize

Version:

An encapsulation of 'Sequelize' and 'treble' packages to handle 3 databases using external schema files.

24 lines (15 loc) 942 B
#Schematize - What's new# ##v 0.0.12 added .page and .bypage parameters for findData method ## ##v 0.0.11 added .count method ## ##v 0.0.7 'force' argument## Now, schematize and schemabatch have a force argument to drop table before creation. ```schematize(db, schema, db3, force);``` and ```schematize(db, [schemas], db3, force)``` ##v 0.0.5 config## returns schematize Now, you can write: ```var schematize = require("schematize").config({...});``` ##v 0.0.4 config## Now you have to call .config method to contigure the path where to find schema files. ##v 0.0.3 add batch processing## You can now open more than ONE table giving an array of string as schema argument. ##v 0.0.2 Removing treble dependency## Now **treble** is not added as a dependency. It should be added to the project dependencies (with _sequelize_ and _mysql_). ##v 0.0.1 Initial version## Using 3 databases (**treble**) and external schemas to handle tables.