EntityManager

public protocol EntityManager : AnyObject

Undocumented

  • Q

    Undocumented

    Declaration

    Swift

    associatedtype Q : QueryBuilder
  • Undocumented

    Declaration

    Swift

    var configuration: Configuration { get set }
  • Undocumented

    Declaration

    Swift

    func createQueryBuilder() -> Q
  • find(_:id:) Asynchronous

    Undocumented

    Declaration

    Swift

    func find<E>(_ entityType: E.Type, id: E.ID) async throws -> E? where E : Entity
  • flush() Asynchronous

    Undocumented

    Declaration

    Swift

    func flush() async throws
  • getRepository(_:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    func getRepository<R>(_ entityType: R.E.Type) -> R where R : EntityRepository
  • Undocumented

    Declaration

    Swift

    func persist<E>(_ entity: inout E) throws where E : Entity
  • Undocumented

    Declaration

    Swift

    func remove<E>(_ entity: E) throws where E : Entity
  • query(_:arguments:) Default implementation, asynchronous

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    @discardableResult
    func query<E>(_ string: String, arguments parameters: [Codable?]) async throws -> [E] where E : Entity
  • query(_:arguments:) Asynchronous

    Undocumented

    Declaration

    Swift

    @discardableResult
    func query<E>(_ string: String, arguments parameters: Codable?...) async throws -> [E] where E : Entity
  • query(_:arguments:) Asynchronous

    Undocumented

    Declaration

    Swift

    @discardableResult
    func query(_ string: String, arguments parameters: [Codable?]) async throws -> [[String : Any?]]
  • query(_:arguments:) Asynchronous

    Undocumented

    Declaration

    Swift

    @discardableResult
    func query(_ string: String, arguments parameters: Codable?...) async throws -> [[String : Any?]]
  • Undocumented

    Declaration

    Swift

    func propertyChanged<E>(entity: E, propertyName: String, oldValue: Codable?, newValue: Codable?) where E : Entity