
ALT Screenshot of code showing how to use Swift 6.1's meta type key paths to chain together static helpers. Code reads as follows: @Table struct SyncUp { var id: Int var isDeleted = false var duration: Int var title: String static let notDeleted = Self.where { !$0.isDeleted } static let shortDuration = Self.where { $0.duration <= 60 * 5 } } // 🤯 Swift 6.1 metatype key paths and dynamic member lookup // make this possible even though 'notDeleted' and 'shortDuration' // are both static properties: let query = SyncUp .notDeleted .shortDuration /* SELECT "syncUps"."id", "syncUps"."duration", "syncUps"."isDeleted", "syncUps"."title" FROM "syncUps" WHERE NOT "syncUps"."isDeleted" AND "syncUps"."duration" <= 300 */


























