feature: session manager #98
Labels
No labels
CI/CD
UI/UX
autorelease: pending
bug
docs
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
size
L
size
M
size
S
size
XL
size
XS
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/dadbod-ui.nvim#98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Did you check the docs?
Is your feature request related to a problem? Please describe.
Something is running long, or blocking me, and i have no way to see what it is or stop it without leaving neovim.
Describe the solution you'd like
List the active sessions, kill one.
Each engine is one read query and one kill statement, which is the same shape as the adapter registry already:
SELECT sa.* FROM pg_stat_activity sapg_terminate_backend(pid)/pg_cancel_backend(pid)SHOW FULL PROCESSLISTKILL QUERY <id>/KILL CONNECTION <id>sys.dm_exec_sessions+dm_exec_sql_textKILL <spid>GV$SESSIONjoined togv$sqlALTER SYSTEM KILL SESSION '<sid,serial#>'Postgres and mysql each give you two verbs and i want both. Cancel the query but keep the connection, versus drop the connection entirely. Not the same action, shouldnt be the same keymap.
Acceptance Criteria
Describe alternatives/other solutions you've considered
Telling people to write the select themselves. Its genuinely one query, but the kill flow and the refresh are what make it worth having, and nobody remembers the sql server one.
A lock and blocking manager instead, showing what is blocking what. More useful in the moment youd want it, and a lot more work. Postgres needs a big lock conflict CTE to work out who is waiting on who. Sessions first, that can come later.