Skip to content

Feature request: filter visible databases by pattern in a single MSSQL connection #1165

Description

@alissoneloi

I'm using DBCode with a MSSQL connection to a server that hosts many databases. The database field works well to pre-select a default catalog, but the DB Explorer still shows all accessible databases on the server.

I would like to be able to filter which databases appear in the explorer for a given connection, while keeping the default database pre-selected.

Example use case:

Server: my-server
User: my-user
Databases on server: APP_PROD, APP_HMG, APP_DEV, OTHER_DB, master, etc.
Desired behavior: connect and list only APP_* databases, with APP_PROD as the default/pre-selected catalog.
Proposed setting:

json
{
  "database": "APP_PROD",
  "databaseFilter": {
    "include": ["APP_*"],
    "exclude": ["OTHER_DB", "master"]
  }
}

Is this something that could be supported?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions