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

the ability to autocomplete the schema not only with tables, but also with functions and procedures #26839

Open
detkliff opened this issue Apr 26, 2024 · 9 comments
Labels
enhancement xf:sql editor SQL Editor and Editor Services like autocompletion, highlighting, folding, formatting, etc. xp:normal

Comments

@detkliff
Copy link

Debeaver 24.0.3
Postgresql 14.3

Current version of Debeaver autocomplete tables and view only.
image

It would be very convenient to display a list of procedures and functions of the circuit in autocompletion. For example, the last block.
How does Oracle PlSQLDeveloper do this?

@E1izabeth E1izabeth added the xf:sql editor SQL Editor and Editor Services like autocompletion, highlighting, folding, formatting, etc. label Apr 26, 2024
@E1izabeth
Copy link
Member

DBeaver shows completion proposals for procedures and functions in SELECT and WHERE clauses, if this setting is turned on
image

Do you need a procedure in FROM clause?

@detkliff
Copy link
Author

detkliff commented May 2, 2024

Do you need a procedure in FROM clause?

yes, i need.

@detkliff
Copy link
Author

detkliff commented May 2, 2024

DBeaver shows completion proposals for procedures and functions in SELECT and WHERE clauses, if this setting is turned on image

Do you need a procedure in FROM clause?

but your option works not well
step 1 wrong search
image
step 2 wrong search
image
step 3 ok
image
step 4 ok
image

@E1izabeth
Copy link
Member

but your option works not well

It doesn't work with schema name, but works without it.
image

@detkliff
Copy link
Author

detkliff commented May 2, 2024

but your option works not well

It doesn't work with schema name, but works without it. image

It’s not at all clear which function it will call if there are functions with the same names and signatures in several schemas

@E1izabeth
Copy link
Member

Yes, I agree with you. That's a point to improve autocompletion too.

@detkliff
Copy link
Author

detkliff commented May 7, 2024

I had to disable this option. I don't understand how it works at all.
image

After disabling the option, it no longer works correctly

image
but I haven't specified the point after the table alias yet

if I choose the suggested option, the alias is replaced with the column name and the alias disappears
image

@detkliff
Copy link
Author

detkliff commented May 7, 2024

image
what kind of list this is is not clear, it does not apply to either nsi_io or nsi_candidate

@E1izabeth
Copy link
Member

Completion doesn't work well in subqueries now. We're working on improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement xf:sql editor SQL Editor and Editor Services like autocompletion, highlighting, folding, formatting, etc. xp:normal
Projects
None yet
Development

No branches or pull requests

2 participants