Skip to content

Run query without displaying it #137

@carlosV2

Description

@carlosV2

Hi,

I've noticed that I can autorun a query with g:db_ui_auto_execute_table_helpers but the query still opens a new buffer. However, I can close the buffer and refresh the results with R without a problem.

Would it be possible to run the query straight away without displaying it? Alternatively the query could be displayed in the result buffer as the first line:

select * from id_only_table LIMIT 200

                  id                  
--------------------------------------
 1a187ab9-97b8-4e76-aa41-37b8c449cb22 
 5cddd73f-7d02-48fd-b4fa-00f7aeddc9f1 
 43a55d29-a383-4214-8754-27bcbba84fab 
 4664d9f4-2d69-4293-b5f7-d138b5a50a38 
 99d46d9d-8d1c-4af2-8ef5-476807dbe71e 
 2d978df0-15f8-47e0-adb6-d5e953a895e8 
(6 rows)

Perhaps it could be down to key mappings, like <CR> for running it directly and e for openning a buffer with the query so that modifications can be done before running it.

Thank you!

P.S.: This project is awesome!

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