TypedEntityStore
public struct TypedEntityStore<Type>
                Undocumented
- 
                  
                  
Undocumented
Declaration
Swift
public typealias EntityType = Type - 
                  
                  
Undocumented
Declaration
Swift
public let entityStore: EntityStore - 
                  
                  
Undocumented
See moreDeclaration
Swift
public enum StoreError : Error - 
                  
                  
Undocumented
Declaration
Swift
public init(entityStore: EntityStore) throws - 
                  
                  
Undocumented
Declaration
Swift
public func store<T>(forType type: T.Type) throws -> TypedEntityStore<T> - 
                  
                  
Undocumented
Declaration
Swift
public func version() -> Int - 
                  
                  
Undocumented
Declaration
Swift
public func persist(_ item: Type) throws - 
                  
                  
Undocumented
Declaration
Swift
public func persist(_ item: Type, completion: @escaping () -> ()) throws - 
                  
                  
Undocumented
Declaration
Swift
public func delete(_ item: Type) throws - 
                  
                  
Undocumented
Declaration
Swift
public func delete(_ item: Type, completion: @escaping () -> ()) throws - 
                  
                  
Undocumented
Declaration
Swift
public func delete(_ identifier: String, type: Type.Type = Type.self, completion: @escaping () -> ()) throws - 
                  
                  
Undocumented
Declaration
Swift
public func delete(_ identifier: String, type: Type.Type = Type.self) throws - 
                  
                  
Undocumented
Declaration
Swift
public func get(_ identifier: String, type: Type.Type = Type.self) throws -> Type? - 
                  
                  
Undocumented
Declaration
Swift
public func get(_ identifier: String, type: Type.Type = Type.self, completion: @escaping (_ item: Type?) -> Void ) throws - 
                  
                  
Undocumented
Declaration
Swift
public func getAll(type: Type.Type = Type.self) throws -> [Type] - 
                  
                  
Undocumented
Declaration
Swift
public func getAll(type: Type.Type = Type.self, completion: @escaping (_ items: [Type]) -> Void) throws - 
                  
                  
Undocumented
Declaration
Swift
public func getAll(_ viewName: String) throws -> [Type] - 
                  
                  
Undocumented
Declaration
Swift
public func getAll(_ viewName: String, completion: @escaping (_ items: [Type]) -> Void) throws - 
                  
                  
Undocumented
Declaration
Swift
public func getAll(_ viewName: String, groupName: String) throws ->[Type] - 
                  
                  
Undocumented
Declaration
Swift
public func getAll(_ viewName: String, groupName: String, completion: @escaping (_ items: [Type]) -> Void) throws - 
                  
                  
Undocumented
Declaration
Swift
public func exists(_ item: Type) throws -> Bool - 
                  
                  
Undocumented
Declaration
Swift
public func exists(_ item: Type, completion: @escaping (_ exists: Bool) -> Void) throws - 
                  
                  
Undocumented
Declaration
Swift
public func exists<T>(_ identifier: String, type: T.Type) throws -> Bool - 
                  
                  
Undocumented
Declaration
Swift
public func exists<T>(_ identifier: String, type: T.Type, completion: @escaping (_ exists: Bool) -> Void) throws - 
                  
                  
Undocumented
Declaration
Swift
public func filter(type: Type.Type = Type.self, includeElement: @escaping (Type) -> Bool) throws -> [Type] - 
                  
                  
Undocumented
Declaration
Swift
public func filter(type: Type.Type = Type.self, includeElement: @escaping (Type) -> Bool, completion: @escaping (_ items: [Type]) -> Void) throws - 
                  
                  
Undocumented
Declaration
Swift
public func addView(_ viewName: String, groupingBlock: @escaping ((_ collection: String, _ key: String, _ object: Type)->String?), sortingBlock: @escaping (( _ group: String, _ collection1: String, _ key1: String, _ object1: Type, _ collection2: String, _ key2: String, _ object2: Type) -> ComparisonResult)) throws 
View on GitHub
        TypedEntityStore Structure Reference