feat(mysql): edit foreign keys and triggers

This commit is contained in:
t8y2 committed 2026-06-12 12:29:46 +08:00
1 parent 1d2d348dd8
commit a858a6bd18
23 files changed
+838 -22

No files matched your search

+3
View File
@@ -1801,6 +1801,8 @@ pub async fn list_foreign_keys(pool: &Pool, schema: &str, table: &str) -> Result
ref_schema: Some(row.get::<_, String>(2)),
ref_table: row.get::<_, String>(3),
ref_column: row.get::<_, String>(4),
on_update: None,
on_delete: None,
})
.collect())
}
@@ -1824,6 +1826,7 @@ pub async fn list_triggers(pool: &Pool, schema: &str, table: &str) -> Result<Vec
name: row.get::<_, String>(0),
event: row.get::<_, String>(1),
timing: row.get::<_, String>(2),
statement: None,
})
.collect())
}