Files
GRDB.swift/Documentation
Gwendal Roué 7ffc332327 BREAKING: replace selectID() with selectPrimaryKey(as:)
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??.

Instead, we introduce selectPrimaryKey(as:), which allows the user to provide the desired type.

    Player.selectPrimaryKey(as: Int64.self) // QueryInterface<Int64>
2022-08-21 21:22:34 +02:00
..
2021-11-07 09:14:23 +01:00
2020-05-06 18:38:36 +02:00
2020-06-29 18:49:07 +02:00
2022-07-09 18:27:57 +02:00
2022-01-19 00:10:42 +08:00
2018-05-06 14:55:39 +02:00
2021-12-02 18:48:36 +01:00
2022-01-19 00:10:42 +08:00
2021-11-06 12:23:54 +01:00

The main documentation is available in README.md.