Skip to content
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

lb4 discover Oracle don't show models #6734

Closed
alexsilvar opened this issue Nov 5, 2020 · 2 comments
Closed

lb4 discover Oracle don't show models #6734

alexsilvar opened this issue Nov 5, 2020 · 2 comments
Assignees
Labels

Comments

@alexsilvar
Copy link

Steps to reproduce

Create a datasource for a oracle database and run lb4 discover

Current Behavior

it will led you to the Select the models with an empty list

lb4 discover
? Select the connector to discover DataMart
? Select the models which to discover (Press <space> to select, <a> to toggle all, <i> to invert selection)

Expected Behavior

List of models from database show bellow:

? Select the models which to discover (Press <space> to select, <a> to toggle all, <i> to invert selection)
Table1
Table2

Additional information

Extensions version

loopback-connector-oracle: ^4.5.2
@loopback/cli: 2.16.1

I tested the connection using oracledb and I'm able to run select queries normally on my database using the same connection string that I'm providing.

Related Issues

Maybe those two
#3296 #2915

@alexsilvar alexsilvar added the bug label Nov 5, 2020
@dhmlau
Copy link
Member

dhmlau commented Nov 5, 2020

@alexsilvar, if you try lb4 discover --all, would it work? The --all option will return all the tables.

I haven't tried it on Oracle yet, but for DB2, without the --all option, it only returns the tables with schema name that's same as the user name.

@dhmlau dhmlau self-assigned this Nov 5, 2020
@alexsilvar
Copy link
Author

Hey, thanks. After I cleaned up my project and changed to an admin db account I was able to discover the tables.
The --all also helped me to get all of them at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants