[GH-ISSUE #3778] programatically change database #1321

Open
opened 2026-03-07 21:02:25 +03:00 by kerem · 1 comment
Owner

Originally created by @sage-nmm on GitHub (Sep 25, 2025).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/3778

Is your feature request related to a problem? Please describe.

I change (MySQL/MariaDB) databases frequently and have come to use SQL scripts without defining an active database using the drop-down at the top bar.

What i do is:

@set db_name = my_current_db_name
select * from ${db_name}.table_name;

Works, but

  • code completion won't show table names after ${db_name}.
  • can't easily delete a row from a result set by right-clocking (because, i assume, there is no active database)

Describe the solution you'd like

Something like @set_active_databae = ${db_name}

Additional context

Community Version 25.2.0.202508311659

Originally created by @sage-nmm on GitHub (Sep 25, 2025). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/3778 **Is your feature request related to a problem? Please describe.** I change (MySQL/MariaDB) databases frequently and have come to use SQL scripts without defining an active database using the drop-down at the top bar. What i do is: ``` @set db_name = my_current_db_name select * from ${db_name}.table_name; ``` Works, but - code completion won't show table names after `${db_name}.` - can't easily delete a row from a result set by right-clocking (because, i assume, there is no active database) **Describe the solution you'd like** Something like @set_active_databae = ${db_name} **Additional context** Community Version 25.2.0.202508311659
Author
Owner

@EvgeniaBzzz commented on GitHub (Sep 25, 2025):

Hi @sage-nmm
CloudBeaver does not support commands yet. We have plans to add this, but I can’t provide a timeline.
Thanks for feature request

<!-- gh-comment-id:3333811171 --> @EvgeniaBzzz commented on GitHub (Sep 25, 2025): Hi @sage-nmm CloudBeaver does not support commands yet. We have plans to add this, but I can’t provide a timeline. Thanks for feature request
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#1321
No description provided.