EntityStore
public protocol EntityStore
Undocumented
-
version()
Default implementationUndocumented
Default Implementation
Undocumented
Declaration
Swift
func version() -> Int
-
Undocumented
Declaration
Swift
func isResponsible<T>(for object: T) -> Bool
-
Undocumented
Declaration
Swift
func isResponsible<T>(forType type: T.Type) -> Bool
-
persist(_:)
Default implementationUndocumented
Default Implementation
Undocumented
Declaration
Swift
func persist<T>(_ item: T!) throws
-
Undocumented
Declaration
Swift
func persist<T>(_ items: [T]) throws
-
Undocumented
Declaration
Swift
func persist<T>(_ item: T!,completion: @escaping () -> ()) throws
-
delete(_:)
Default implementationUndocumented
Default Implementation
Undocumented
Declaration
Swift
func delete<T>(_ item: T!) throws
-
Undocumented
Declaration
Swift
func delete<T>(_ items: [T]) throws
-
Undocumented
Declaration
Swift
func delete<T>(_ item: T!, completion: @escaping () -> ()) throws
-
Undocumented
Declaration
Swift
func get<T>(_ identifier: String) throws -> T?
-
Undocumented
Declaration
Swift
func get<T>(_ identifier: String, completion: @escaping (_ item: T?) -> Void ) throws
-
Undocumented
Declaration
Swift
func getAll<T>(_ type: T.Type) throws -> [T]
-
Undocumented
Declaration
Swift
func getAll<T>(_ type: T.Type, completion: @escaping (_ items: [T]) -> Void) throws
-
Undocumented
Declaration
Swift
func getAll<T>(_ viewName: String) throws -> [T]
-
Undocumented
Declaration
Swift
func getAll<T>(_ viewName:String, completion: @escaping (_ items: [T]) -> Void) throws
-
Undocumented
Declaration
Swift
func getAll<T>(_ viewName: String, groupName: String) throws -> [T]
-
Undocumented
Declaration
Swift
func getAll<T>(_ viewName:String,groupName:String, completion: @escaping (_ items: [T]) -> Void) throws
-
Undocumented
Declaration
Swift
func exists<T>(_ item: T!) throws -> Bool
-
Undocumented
Declaration
Swift
func exists<T>(_ item : T!, completion: @escaping (_ exists: Bool) -> Void) throws
-
Undocumented
Declaration
Swift
func exists<T>(_ identifier: String, type: T.Type) throws -> Bool
-
Undocumented
Declaration
Swift
func exists<T>(_ identifier : String,type : T.Type, completion: @escaping (_ exists: Bool) -> Void) throws
-
Undocumented
Declaration
Swift
func filter<T>(_ type: T.Type, includeElement: @escaping (T) -> Bool) throws -> [T]
-
Undocumented
Declaration
Swift
func filter<T>(_ type: T.Type, includeElement: @escaping (T) -> Bool, completion: @escaping (_ items: [T]) -> Void) throws
-
Undocumented
Declaration
Swift
func addView<T>(_ viewName: String, groupingBlock: @escaping ((_ collection: String, _ key: String, _ object: T) -> String?), sortingBlock: @escaping ((_ group: String, _ collection1: String, _ key1: String, _ object1: T, _ collection2: String, _ key2: String, _ object2: T) -> ComparisonResult)) throws
-
Undocumented
Declaration
Swift
func transaction(transaction: @escaping (_ transactionStore: EntityStore) throws -> Void) throws
-
delete(_:type:completion:)
Extension methodUndocumented
Declaration
Swift
public func delete<T>(_ identifier: String, type: T.Type, completion: @escaping () -> ()) throws
-
delete(_:type:)
Extension methodUndocumented
Declaration
Swift
public func delete<T>(_ identifier: String, type: T.Type) throws
-
get(_:type:)
Extension methodUndocumented
Declaration
Swift
public func get<T>(_ identifier: String, type: T.Type) throws -> T?
-
get(_:type:completion:)
Extension methodUndocumented
Declaration
Swift
public func get<T>(_ identifier: String, type: T.Type, completion: @escaping (_ item: T?) -> Void ) throws