feat(sql): suggest join conditions from foreign keys
This commit is contained in:
1 parent
b10e7cb1cf
commit
a54c8cfd93
12 files changed
+632
-82
No files matched your search
@@ -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")?,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user