Adds a new data source definition to a LoopBack application.
$ apic create --type datasource [options] [<name>]
Or
$ slc loopback:datasource [options] [<name>]
-h, --help
Print the generator’s options and usage.
--skip-cache
Do not remember prompt answers. Default is false.
--skip-install
Do not automatically install dependencies. Default is false.
You can optionally provide the name of the data source to create as an argument. If you do, the tool will use that as the default when it prompts for the name.
The tool will prompt you for:
You must install the connector for the new data source; for example: npm install --save loopback-connector-mysql
This adds an entry to datasources.json with the specified settings.