Closed thinkAmi closed 5 months ago
Hey,
Thanks for the PR! I'm sorry I haven't gotten much time to work on this myself - your PR is greatly appreciated 😄
I'll merge now.
Thank you for the quick merge!
d1-jdbc-driver
has been very helpful!
No problem!
I'll try and get a release out today - just have to remember how builds worked, it's been so long 😅
@isaac-mcfadyen would be awesome to have this release! thanks a lot for this project, it's such a lifesaver
Detail
Add basic support for foreign key.
This will allow foreign keys to be displayed in DataGrip.
Limitation
In SQLite, you can name foreign key constraints when you
CREATE TABLE
.However, the foreign key constraint names themselves are not stored anywhere as table columns. System tables have SQL but are hard to reference.
How to get the names of foreign key constraints in SQLite? - Stack Overflow
Therefore, the foreign key constraint name is currently fixed to
<table_name>_<id>_<seq>
.For more information, please see the screenshots.
Screenshot
Test
I have confirmed that it works by following these steps.
d1-driver-test
)