Skip to main content

parse_foreign_keys

Function parse_foreign_keys 

Source
pub fn parse_foreign_keys(create_sql: &str) -> Vec<ForeignKeyInfo>
Expand description

Parse foreign key relationships from a CREATE TABLE SQL statement.

Handles both table-level (FOREIGN KEY (col) REFERENCES ...) and inline column-level (col TYPE REFERENCES ...) syntax.