feature: virtual foreign keys #99
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#99
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.
Foreign key jump only works when the schema actually declares the foreign key. Views dont. Myisam doesnt. Plenty of warehouses dont bother declaring them at all.
So the feature quietly stops existing depending on what you opened, and views are always a dead end.
Describe the solution you'd like
Let me declare a foreign key that isnt in the schema, persist it in config, and have foreign key jump treat it like a real one.
Its a config file plus a lookup in the jump path we already have, so its cheap for what it gives back. It makes an existing feature work in the places it currently gives up.
Acceptance Criteria
Describe alternatives/other solutions you've considered
Nothing, and living with it. Thats today. Means views are dead ends and constraint-less schemas get none of the navigation.
Virtual unique keys too, like DBeaver has. Theirs exists to make grid editing work on tables without a primary key, and we decided against editable grids, so theres no reason for it yet.