support compound indexes and unique constraints on CoreStore properties

This commit is contained in:
John Rommel Estropia
2018-03-17 23:56:42 +09:00
parent 0c29e07ddb
commit 7b1075b759
9 changed files with 159 additions and 105 deletions

View File

@@ -26,12 +26,23 @@
import Foundation
// MARK: - AnyDynamicKeyPath
public protocol AnyDynamicKeyPath {
/**
The keyPath string
*/
var cs_keyPathString: String { get }
}
// MARK: - DynamicKeyPath
/**
Used only for utility methods.
*/
public protocol DynamicKeyPath {
public protocol DynamicKeyPath: AnyDynamicKeyPath {
/**
The DynamicObject type
@@ -42,11 +53,6 @@ public protocol DynamicKeyPath {
The Value type
*/
associatedtype ValueType
/**
The keyPath string
*/
var cs_keyPathString: String { get }
}