MemoryEntityStore

open class MemoryEntityStore : EntityStore

Undocumented

  • Undocumented

    See more

    Declaration

    Swift

    public enum StoreError : Error
  • Undocumented

    Declaration

    Swift

    public init()
  • Undocumented

    Declaration

    Swift

    public init(_ items: [Any]) throws
  • Undocumented

    Declaration

    Swift

    public func isResponsible<T>(for object: T) -> Bool
  • Undocumented

    Declaration

    Swift

    public func isResponsible<T>(forType type: T.Type) -> Bool
  • Undocumented

    Declaration

    Swift

    public func get<T>(_ identifier: String) throws -> T?
  • Undocumented

    Declaration

    Swift

    public func get<T>(_ identifier: String, completion: @escaping (T?) -> Void) throws
  • Undocumented

    Declaration

    Swift

    public func delete<T>(_ item: T!) throws
  • Undocumented

    Declaration

    Swift

    public func delete<T>(_ item: T!, completion: @escaping () -> ()) throws
  • Undocumented

    Declaration

    Swift

    public func persist<T>(_ item: T!) throws
  • Undocumented

    Declaration

    Swift

    public func persist<T>(_ item: T!, completion: @escaping () -> ()) throws
  • Undocumented

    Declaration

    Swift

    public func getAll<T>(_ type: T.Type) throws -> [T]
  • Undocumented

    Declaration

    Swift

    public func getAll<T>(_ type: T.Type, completion: @escaping ([T]) -> Void) throws
  • Undocumented

    Declaration

    Swift

    public func getAll<T>(_ viewName: String) throws -> [T]
  • Undocumented

    Declaration

    Swift

    public func getAll<T>(_ viewName: String, completion: @escaping ([T]) -> Void) throws
  • Undocumented

    Declaration

    Swift

    public func getAll<T>(_ viewName: String, groupName: String) throws -> [T]
  • Undocumented

    Declaration

    Swift

    public func getAll<T>(_ viewName: String, groupName: String, completion: @escaping ([T]) -> Void) throws
  • Undocumented

    Declaration

    Swift

    public func exists<T>(_ item: T!) throws -> Bool
  • Undocumented

    Declaration

    Swift

    public func exists<T>(_ item: T!, completion: @escaping (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 (Bool) -> Void) throws
  • Undocumented

    Declaration

    Swift

    public func filter<T>(_ type: T.Type, includeElement: @escaping (T) -> Bool) throws -> [T]
  • Undocumented

    Declaration

    Swift

    public func filter<T>(_ type: T.Type, includeElement: @escaping (T) -> Bool, completion: @escaping ([T]) -> Void) throws
  • Undocumented

    Declaration

    Swift

    public func addView<T>(_ viewName: String,
                        groupingBlock: @escaping ((String, String, T) -> String?),
                         sortingBlock: @escaping ((String, String, String, T, String, String, T) -> ComparisonResult)) throws
  • Undocumented

    Declaration

    Swift

    public func transaction(transaction: @escaping (EntityStore) throws -> Void) throws
  • Undocumented

    Declaration

    Swift

    public func allEntities() -> [Any]
  • Undocumented

    Declaration

    Swift

    public func updatedEntities() -> [Any]
  • Undocumented

    Declaration

    Swift

    public func updatedEntities<T>(type: T.Type) -> [T]
  • Undocumented

    Declaration

    Swift

    public func deletedEntities<T>(type: T.Type) -> [T]
  • Undocumented

    Declaration

    Swift

    public func deletedEntities() -> [Any]
  • Undocumented

    Declaration

    Swift

    public func cleanDeletedEntitesFromMemory()