From 3f8e9945018db7589656dbfe08508c1923091e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 27 Jul 2019 15:12:03 +0200 Subject: [PATCH] API diff --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3d7445b8..3a7e932eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,44 @@ GRDB adheres to [Semantic Versioning](https://semver.org/), with one expection: - [#574](https://github.com/groue/GRDB.swift/pull/574): SwiftLint - [#576](https://github.com/groue/GRDB.swift/pull/576): Expose table name and full-text filtering methods to DerivableRequest +### API Diff + +```diff +-extension QueryInterfaceRequest { +- func matching(_ pattern: FTS3Pattern?) -> QueryInterfaceRequest +-} +-extension QueryInterfaceRequest { +- func matching(_ pattern: FTS5Pattern?) -> QueryInterfaceRequest +-} ++extension TableRequest where Self: FilteredRequest { ++ func matching(_ pattern: FTS3Pattern?) -> Self ++} ++extension TableRequest where Self: FilteredRequest { ++ func matching(_ pattern: FTS5Pattern?) -> Self ++} + + protocol Association: DerivableRequest { +- associatedtype OriginRowDecoder ++ associatedtype OriginRowDecoder: TableRecord + } + +-struct BelongsToAssociation: AssociationToOne { } +-struct HasManyAssociation: AssociationToMany { } +-struct HasManyThroughAssociation: AssociationToMany { } +-struct HasOneAssociation: AssociationToOne { } +-struct HasOneThroughAssociation: AssociationToOne { } ++struct BelongsToAssociation: AssociationToOne { } ++struct HasManyAssociation: AssociationToMany { } ++struct HasManyThroughAssociation: AssociationToMany { } ++struct HasOneAssociation: AssociationToOne { } ++struct HasOneThroughAssociation: AssociationToOne { } + +-struct QueryInterfaceRequest: DerivableRequest { } ++struct QueryInterfaceRequest: FilteredRequest, JoinableRequest, OrderedRequest, SelectionRequest { } ++extension QueryInterfaceRequest: TableRequest where RowDecoder: TableRecord { } ++extension QueryInterfaceRequest: DerivableRequest where RowDecoder: TableRecord { } +``` + ## 4.1.1