[Community feedback] Virtual foreign keys #18
Closed
DavLagoHern
started this conversation in
Ideas
Replies: 1 comment
|
Implemented in LakeDB Beta 5.4 as a deliberately bounded first version.
The trust boundary remains narrow: local relationships do not affect autocomplete or QuerIA in this release, and custom table positions last only for the current open map. Release and downloads: https://github.com/DavLagoHern/LakeDB/releases/tag/v1.0.0-beta.5.4 Follow-up ideas can remain here for navigation, autocomplete/QuerIA provenance, and conflict handling with future real foreign keys. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This idea grew out of conversations with SQL users on Reddit about databases where important relationships exist in practice but were never declared as
FOREIGN KEYconstraints. I am opening it here to collect the different ways people document and navigate those relationships today.The idea to explore
A virtual relationship would be stored only in LakeDB and would not modify the database. It might help navigation, autocomplete or QuerIA understand an intentionally documented link between columns.
The distinction from a real database constraint must stay obvious. A wrong virtual relationship could mislead a person and could be especially risky if it influenced AI-generated SQL, so validation and provenance would be essential.
Looking for real use cases
This is an exploration, not a planned feature. Reactions are useful, but detailed examples of the trust and maintenance problems are even more valuable.
All reactions