Skip to content

Commit 7ff75f0

Browse files
committed
README
1 parent dcf45ac commit 7ff75f0

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

README.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,15 @@ let swiftDevelopers = managedObjectContext.from(Developer.self).
3737
In your `Cartfile`, add the following line:
3838

3939
```ruby
40-
github "prosumma/CoreDataQueryInterface" ~> 5.0
40+
github "prosumma/CoreDataQueryInterface" ~> 6.0
4141
```
4242

4343
#### CocoaPods
4444

4545
Add the following to your `Podfile`. If it isn't already present, you will have to add `use_frameworks!` as well.
4646

4747
```ruby
48-
pod 'CoreDataQueryInterface', '~> 5.0'
49-
```
50-
51-
### Changes From Previous Versions
52-
53-
The overall syntax of CDQI is unchanged from previous versions, as the examples in this document show. But there are small changes.
54-
55-
First, `EntityQuery`, `ExpressionQuery` and the like are gone, replaced by a single type `Query<M, R>`. The first generic parameter is the type of managed object model to work with. The second parameter is the result type, which must conform to the `NSFetchResultType` protocol. So instead of saying `EntityQuery.from(Project.self)`, just create an instance with `Query<Project, NSDictionary>()`.
56-
57-
The second major difference is the use of prefixes on methods, properties, and type aliases. CDQI extends common types like `String`, `NSExpression`, and so on. Previous versions of CDQI added method and property names that had a higher likelihood of conflict with other frameworks or future changes by Apple. To mitigate this, methods, properties, and associated types that may be added to arbitrary types use the `cdqi` or `CDQI` prefix as appropriate. For example:
58-
59-
```swift
60-
public protocol ExpressionConvertible {
61-
var cdqiExpression: NSExpression { get }
62-
}
63-
64-
public protocol TypedExpressionConvertible: ExpressionConvertible, Typed {
65-
associatedtype CDQIComparisonType: Typed
66-
}
48+
pod 'CoreDataQueryInterface', '~> 6.0'
6749
```
6850

6951
### Attribute Proxies

0 commit comments

Comments
 (0)