feat(sql): suggest join conditions from foreign keys

This commit is contained in:
t8y2 committed 2026-06-02 18:08:06 +08:00
1 parent b10e7cb1cf
commit a54c8cfd93
12 files changed
+632 -82

No files matched your search

+1
View File
@@ -451,6 +451,7 @@ pub async fn list_foreign_keys(pool: &SqliteHandle, _schema: &str, table: &str)
Ok(ForeignKeyInfo {
name: format!("fk_{}", row.get::<_, i32>("id")?),
column: row.get("from")?,
ref_schema: None,
ref_table: row.get("table")?,
ref_column: row.get("to")?,
})