Skip to content

[Feature Request] - Close connection (Instead of delete it) #12

Closed

Description

@giquo

Problem/Motivation

I was switching between development and staging databases and was startled that I couldn't find a value, I just realized that I was using the wrong connection, when I and searched a table with @, I picked up the first one I saw, my bad that I didn't read the DB column, then, I wanted to close one of the connections so I just get the tables from the DB I'm interested, I didn't find how, and seems to be that is not implemented.

Thanks so much!

Activity

  1. kackerx commented on Nov 19, 2026

    @kackerx
    Owner

    Thanks for the clear write-up. v0.11.0 adds Disconnect.

    Right-click the connection in the tree and pick Disconnect (or run Disconnect from the command palette). Its tables and Redis keys drop out of @, : and completion, so picking a table from the wrong database can't happen while it's disconnected. Its open tabs stay with the data they show; the next fetch, run or expanding the node connects again. If it has an open transaction, you're asked first.

    To tell connections apart at a glance, a connected one now has a dot after its name in the tree (an * with icons = "ascii"), and a disconnect shows a Disconnected toast.

    Upgrade: brew upgrade kackerx/tap/sqlmux, npm install -g sqlmux@latest, or go install github.com/kackerx/sqlmux/cmd/sqlmux@latest. Closing as done; feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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