pinchbv / floor

The typesafe, reactive, and lightweight SQLite abstraction for your Flutter applications
https://pinchbv.github.io/floor/
Apache License 2.0
947 stars 190 forks source link

No warning when one of multiple primary keys is missing #789

Open Huluk opened 10 months ago

Huluk commented 10 months ago

I misspelled one of multiple primary keys like so:

@Entity(primaryKeys: ['foreign_id', 'time'])
class Example {
  final int foreignId;
  final DateTime time;
}

and flutter did not complain at all and instead only created a single primary key, for time. This is very hard to notice and should produce an error message.