-
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
Add --tables/--models arguments to lb4 discover
command
#7104
Comments
@dhmlau I don't permissions to shift this issue to the LoopBack 4 repo. Could you please assist? Thanks |
Transferred! |
It would be a useful feature. For database migration, we can list which models to migrate, but not for discovery. |
Any other way of doing this in the meantime? I have 2500 tables, impossible to navigate with CLI. Made a PR: #7609 |
WORKAROUND:
Generates all models. Then you can easily pick the right ones and remove the others. |
added --models option inside lb4 discover command to generate specific models BREAKING CHANGE: 🧨 no ✅ Closes: loopbackio#7104 Signed-off-by: Punit Diwan <[email protected]>
|
Suggestion
Add arguments
--tables
or--models
tolb4 discover
command.Use Cases
I'm a new user to Loopback trying to create a REST API for two large existing SQL Server databases, each database has in excess of 200 tables spanning 8+ schemas, and scrolling the list in the interactive prompts to find just the 8 tables required is near impossible, and made worse by the fact that the results don't seem to be in any particular order...?
This would also allow you to selectively discover models later in development much easier.
Examples
lb4 discover --tables=customers,contacts,quotes,parts
lb4 discover --models=customers,contacts,quotes,parts
The text was updated successfully, but these errors were encountered: