diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab0fa9eb..08f5619b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -126,8 +126,10 @@ It comes with new features, but also a few breaking changes. The [GRDB 4 Migrati +extension BelongsToAssociation: AssociationToOne { } +extension HasManyAssociation: AssociationToMany { } +extension HasOneAssociation: AssociationToOne { } + +struct HasManyThroughAssociation: AssociationToMany { } +extension HasManyThroughAssociation: TableRequest where Destination: TableRecord { } + +struct HasOneThroughAssociation: AssociationToOne { } +extension HasOneThroughAssociation: TableRequest where Destination: TableRecord { } @@ -190,7 +192,14 @@ It comes with new features, but also a few breaking changes. The [GRDB 4 Migrati + mutating func appendInterpolation(_ ordering: SQLOrderingTerm) + mutating func appendInterpolation(_ request: SQLRequest) +} +``` + + +
+ Raw SQL breaking changes + +```diff class Database { - func makeSelectStatement(_ sql: String) throws -> SelectStatement - func makeUpdateStatement(_ sql: String) throws -> UpdateStatement @@ -327,7 +336,7 @@ It comes with new features, but also a few breaking changes. The [GRDB 4 Migrati
- ValueObservation + ValueObservation breaking changes ```diff enum ValueScheduling { @@ -366,7 +375,7 @@ It comes with new features, but also a few breaking changes. The [GRDB 4 Migrati
- Full Text Search: support for SQLite 3.27 + Full Text Search breaking changes: support for SQLite 3.27 ```diff struct FTS3 { @@ -403,7 +412,7 @@ It comes with new features, but also a few breaking changes. The [GRDB 4 Migrati
- SQLCipher + SQLCipher breaking changes ```diff struct Configuration { @@ -415,7 +424,7 @@ It comes with new features, but also a few breaking changes. The [GRDB 4 Migrati
- Miscellaneous + Miscellaneous additions ```diff struct Column { @@ -438,7 +447,18 @@ It comes with new features, but also a few breaking changes. The [GRDB 4 Migrati protocol OrderedRequest { + func unordered() } + + struct DatabaseRegion { ++ init(table: String) + } +``` +
+ +
+ Miscellaneous breaking changes + +```diff enum PersistenceError: Error { - case recordNotFound(MutablePersistableRecord) + case recordNotFound(databaseTableName: String, key: [String: DatabaseValue]) @@ -448,10 +468,6 @@ It comes with new features, but also a few breaking changes. The [GRDB 4 Migrati - func flatMap(_ transform: @escaping (Element) throws -> ElementOfResult?) -> MapCursor>, ElementOfResult> } - struct DatabaseRegion { -+ init(table: String) - } - struct DatabaseValue { - func losslessConvert(sql: String? = nil, arguments: StatementArguments? = nil) -> T where T : DatabaseValueConvertible - func losslessConvert(sql: String? = nil, arguments: StatementArguments? = nil) -> T? where T : DatabaseValueConvertible