Skip to content

Database level helper queries #92

Open
@eruizc-dev

Description

@eruizc-dev

Database level helper queries

There are currently table helpers. Useful for counting, ordering and whatever you wanna do with tables. You name it.

But there are basic queries that you make with all databases like listing schemas, users, tables and other stuff. These queries are executed at a database level and can be run in all databases with the same engine.

Example:

SELECT User, Host, Password FROM mysql.user;

I'd like to define the previous query as the following

let g:db_ui_helpers = {
\   'mysql': {
\      'List Users': 'SELECT User, Host, Password FROM mysql.user'
\   }
\}

And have it appear like the following in ALL mysql databases.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions