findFieldsReferencedTablesImpl method

  1. @protected
FutureOr<Map<String, TableFieldReference>> findFieldsReferencedTablesImpl(
  1. C connection,
  2. String table
)

Finds the foreign keys of table, with connection: the referenced table (and field) of each referencing field, by the field name.

Implemented by the adapters that introspect their schema (see listTablesNamesImpl). Default: throws UnsupportedError.

Implementation

@protected
FutureOr<Map<String, TableFieldReference>> findFieldsReferencedTablesImpl(
  C connection,
  String table,
) => throw UnsupportedError(
  "Can't find the fields referenced tables of `$table`: $this",
);