-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI for model discovery in LB4 #1949
Comments
@dhmlau I am good with Raymond's suggestion. I've heard of lots of expectations for this feature from LB3 users. Acceptance Criteria would be:
|
Hmm I think this is a dup story of #1921 And a community member is already implementing the cli in a forked repo. |
Do we also need to update our issue keeping track of feature parity with LB3? #1949 Are there any other issues and Epics to update? |
AFAICT, there is no CLI command for discovering database schemas and creating model definitions from them. I am reopening this issue. |
Closing as done as PR #2245 has landed. |
Description / Steps to reproduce / Feature proposal
If I have a sql datatabase (say mysql), how can i create model based on the schema in the database?
Related to: #1921
Updates
Per our team meeting, @raymondfeng is suggesting to implement
lb4 discover
instead of document the current way for model discovery because not all the generated model json from thediscoverSchemas
method can be represented correctly in LB4 model (it works for the simple cases, but may not be for other).There will be 2 stages in
lb4 discover
:@strongloop/loopback-maintainers, thoughts?
Original Description
Acceptance Criteria
DataSource.discoverSchemas
to create model.How tos
in documentationReferences
I've captured some steps in how to use model discovery and Mario added his comments in the following links:
strongloop/v4.loopback.io#50 (comment)
strongloop/v4.loopback.io#50 (comment)
The text was updated successfully, but these errors were encountered: