You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3341,6 +3341,16 @@ You can now build requests with the following methods: `all`, `none`, `select`,
3341
3341
Player.select(nameColumn, as: String.self)
3342
3342
```
3343
3343
3344
+
- [`selectID()`](https://swiftpackageindex.com/groue/GRDB.swift/documentation/grdb/queryinterfacerequest/selectID()) is available on [Identifiable Records]. It supports all tables that have a single-column primary key:
3345
+
3346
+
```swift
3347
+
// SELECT id FROM player
3348
+
Player.selectID()
3349
+
3350
+
// SELECT id FROM player WHERE name IS NOT NULL
3351
+
Player.filter(nameColumn != nil).selectID()
3352
+
```
3353
+
3344
3354
- [`annotated(with: expression...)`](https://swiftpackageindex.com/groue/GRDB.swift/documentation/grdb/selectionrequest/annotated(with:)-6ehs4) extends the selection.
0 commit comments