From cb7f8271186260ecadac8a3982a99dcabb02f1b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 7 Jun 2018 13:26:48 +0200 Subject: [PATCH] GRDB2MigrationGuide.md no longer refers to GRDB3 branch --- Documentation/GRDB2MigrationGuide.md | 48 +++------------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/Documentation/GRDB2MigrationGuide.md b/Documentation/GRDB2MigrationGuide.md index 5ef3899ef..f32048bb1 100644 --- a/Documentation/GRDB2MigrationGuide.md +++ b/Documentation/GRDB2MigrationGuide.md @@ -5,7 +5,6 @@ GRDB 3 comes with new features, but also a few breaking changes, and a set of up **For all users** -- [How To Upgrade] - [Swift 4.1 Required] - [iOS 8 Sunsetting] - [Database Schema Recommendations] @@ -23,39 +22,6 @@ GRDB 3 comes with new features, but also a few breaking changes, and a set of up - [Notable Documentation Updates] -## How to Upgrade - -Target the "GRDB3" branch: - -### CocoaPods - -Update your Podfile: - -```ruby -pod 'GRDB.swift', git: 'https://github.com/groue/GRDB.swift', branch: 'GRDB3' -``` - -### Swift Package Manager - -Update your Package.swift file: - -```swift -let package = Package( - dependencies: [ - .package(url: "https://github.com/groue/GRDB.swift.git", .branchItem("GRDB3")) - ] -) -``` - -### Manually - -Update your local copy of GRDB: - -```sh -git checkout GRDB3 -git pull -``` - ## Swift 4.1 Required GRDB 3 uses [conditional conformances], introduced in Swift 4.1. It can only be built on Xcode 9.3+. @@ -430,19 +396,13 @@ See the updated [Custom Requests](../README.md#custom-requests) chapter for more ## If You Use RxGRDB -To install the GRDB 3 flavor of RxGRDB, update your Podfile: - -```ruby -pod 'RxGRDB', git: 'https://github.com/groue/RxGRDB', branch: 'GRDB3' -``` - -Some APIs have slighly changed. Did you track multiple requests at the same time with "fetch tokens"? +Some RxGRDB APIs have slighly changed. Did you track multiple requests at the same time with "fetch tokens"? ```swift // GRDB 2 dbQueue.rx - .fetchTokens(in: [...]) - .mapFetch { db in ... } + .fetchTokens(in: [request, ...]) + .mapFetch { db in try fetchResult(db) } .subscribe(...) ``` @@ -451,7 +411,7 @@ Now you'll write instead: ```swift // GRDB 3 dbQueue.rx - .fetch(from: [...]) { db in ... } + .fetch(from: [request, ...]) { db in try fetchResult(db) } .subscribe(...) ```