listForeignKeys method

  1. @override
Future<List<SchemaForeignKey>> listForeignKeys(
  1. String table, {
  2. String? schema,
})
override

Lists foreign keys for table within an optional schema.

Implementation

@override
Future<List<SchemaForeignKey>> listForeignKeys(
  String table, {
  String? schema,
}) async => snapshot.foreignKeys
    .where(
      (fk) => _equalsOwner(fk.schema, schema) && _equals(fk.tableName, table),
    )
    .toList(growable: false);