1.1.3 • Published 5 years ago

lb-update v1.1.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

lb-update

Script to update and add models through loopback using a mysql database

Installation:

npm install lb-update

Naming conventions:

  • Database tables: underscore_separated
  • Property names: underscore_separated
  • Model names: PascalCase
  • JSON file names: hyphen-separated

In the future, there will be customizable naming conventions

Update: updates the model.json files of the given models using the database

  • -a or --all: updates all models that uses given databaseName
 lb-update update [options] <databaseName> [modelNames...]

Add: adds the model.json files of the given models using the database, also updates the model-config file

  • -a or --all: adds all models that uses given databaseName
lb-update add [options] <databaseName> [modelNames...]

Delete: deletes model.json and model.js files that uses the given databaseName but no long exist in the database, also updates the model-config file

lb-update delete <databaseName> [modelNames...]

Currently, update only updates a default set of properties and does not edit properties other than these:

  • type
  • required
  • length
  • id

More options and functionality to come in the future

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago