getForeignKeysForColumn method

List<SupabaseForeignKeyConstraint> getForeignKeysForColumn(
  1. String columnName
)

Gets a list of foreign key constraints that involve the specified columnName.

Implementation

List<SupabaseForeignKeyConstraint> getForeignKeysForColumn(
  String columnName,
) {
  return foreignKeys.where((fk) => fk.columns.contains(columnName)).toList();
}