Skip to content

Auto-complete suggestions only from selected schema. #773

@paratus-nam

Description

@paratus-nam

Hi,

Using Oracle, it seems that DBCode only includes tables and views of the selected schema in the auto-complete suggestion list.

For example, I have an 'ITEMISED_AMOUNT' in the TAKEON schema, and 'ACCESS_NUMBERS' table in the SUPER schema (with which the connection is established).

With DBCode, selecting SUPER as the schema, I don't get TAKEON's objects in the list:

Image

.... only those of SUPER:

Image

So I am forced to do:

Image

Even though doing the following would be valid syntax (i.e. specifying schema is not required):

Image

Also, the suggestion list after 'ia' does not provide columns from the ITEMISED_AMOUNT table, instead it suggests columns from tables in the SUPER schema:

Image

With Oracle's SQL Developer extension, I get auto-complete for tables and views for all schema's/users:

Image Image

Coming from Oracle's extension, it makes it hard to want to switch.

Perhaps make the connection selection be able to optionally select the schema, and if not selected provide suggestions from all schemas? You would need to show the schema in the suggestion list next to each object though, for cases where duplicate object names are used in different schemas.
This is particularly an issue with Oracle, which creates a schema for every table owner, unlike e.g. Postgres where users and schemas are independent.

Side issue:

Unlike Oracle's SQL Developer extension, typing a schema in lowercase does not make DBCode select it, hence no suggestions are provided for it.
E.g. the following is listing the SUPER schema's object, not those of the 'takeon' schema:

Image

Case sensitive works:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions