CLI command to generate datasource. It generates either:
$lb datasource
? Enter the datasource name: testds
? Select the connector for testds: (selection of connectors) PostgreSQL (supported by StrongLoop)
? Connection String url to override other settings (eg: postgres://username:password@localhost/database): postgres://username:password@localhost/database
? host: localhost
? port: 5432
? user: username
? password: ****
? database: testdb
? Install loopback-connector-postgresql@^2.4 No
As a result, src/datasources/testds.datasource.ts will be generated.
Description / Feature proposal
CLI command to generate datasource. It generates either:
Sample for the first approach:
Sample for the latter approach:
User Experience
As a result, src/datasources/testds.datasource.ts will be generated.
Outstanding questions
example-todo?Acceptance Criteria
lb4 datasource-- works like LB3 CLI with the following changes:.jsonfile.tsfile is created which injects the datasource configenv...