Skip to content

Conversation

stephencelis
Copy link
Member

We can use a multi-column @Selection to represent SyncMetadata's composite primary key, which provides a more straightforward API for joining into the SyncMetadata table:

RemindersList
  .leftJoin(SyncMetadata.all) { $0.syncMetadataID.eq($1.id) }

This also provides a straightforward API for fetching sync metadata for a given ID:

SyncMetadata.find(reminder.syncMetadataID)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant