Files
GRDB.swift/GRDB
Gwendal Roué 87b236dfe0 selectID
This reverts 7ffc332327

At the time, selectID was replaced with selectPrimaryKey(as:) because:

> Since Optional is a database value like others, selectID would be a request of optionals for records with an optional ID type:
>
>     struct Player: Identifiable, MutablePersistableRecord {
>         var id: Int64?
>     }
>
>     Player.selectID() // QueryInterface<Int64?>
>
> This is not good, because primary keys are not null. And those requests would fetch impractical types such as [Int64?], Set<Int64?>, Int64??.

This problem is reintroduced, but we now recommend against optional ids in https://swiftpackageindex.com/groue/grdb.swift/documentation/grdb/recordrecommendedpractices. And record with optional ids can use selectPrimaryKey(as:).
2025-02-11 20:47:49 +01:00
..
2025-02-05 13:38:19 +01:00
2025-02-11 20:47:49 +01:00
2024-09-21 14:28:24 +02:00
2025-01-26 14:21:35 +01:00
2025-02-11 20:47:49 +01:00
2025-02-11 20:47:49 +01:00
2025-01-22 20:41:55 +01:00
2024-10-06 18:36:43 +02:00