space-lb2

messaging

space-node

This documentation is deprecated
Please see the new LoopBack documentation site.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Adds a new data source definition to an existing a LoopBack application.

Note

You must install the connector for the new data source; for example: npm install --save loopback-connector-mysql

Syntax

slc loopback:datasource [options] [<name>]

Include Page
_generator options
_generator options

...

  • Name of the new data source.  If you supplied a name on the command-line, just hit Enter to use it.
  • Connector to use for the data source.
Note

You must install the connector for the new data source; for example: npm install --save loopback-connector-mysql

OUTPUT

This adds an entry to datasources.json with the specified settings.

...