@trifinlabs/ramp-api-cli
v1.1.0
Published
ramp-cli
Downloads
13
Readme
Usage
Run ramp-cli [args]
to get args list run ramp-cli
Auto discovery
To run auto discovery script, run node auto-dsicover.js
It connects to every datasource provided in server/datasources.json file
and generates model files for all tables found in public and salesforce schemas, except
- tables with models presented in server/model-config.json and marked as private (public === false)
- tables with _ in the beggining of the table name (e.g. _log) All existing .json model definitions will be overwritten, existing .js files will be kept, to save models logic All model .json files that has no tables in database will be removed
!!!!Warning
On npm preinstall hook we run auto-discovery.js script to sync database tables and model files
To install npm packages locally and not sync models, please run
npm install --ignore-scripts