fullPrimaryKey property

Set<MoorColumn> fullPrimaryKey

The primary key for this table.

Unlikely primaryKey, this method is not limited to the primaryKey override in Dart table declarations.

Implementation

Set<MoorColumn> get fullPrimaryKey {
  if (primaryKey != null) return primaryKey!;

  return columns.where((c) => c.features.any((f) => f is PrimaryKey)).toSet();
}