EntityManager

public protocol EntityManager

Undocumented

  • Q

    Undocumented

    Declaration

    Swift

    associatedtype Q : QueryBuilder
  • Undocumented

    Declaration

    Swift

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

    Undocumented

    Declaration

    Swift

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

    Undocumented

    Declaration

    Swift

    func flush() async throws
  • Undocumented

    Declaration

    Swift

    func getRepository<R>(_ repositoryType: R.Type) -> R where R : Repository
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    func remove<E>(_ entity: E) where E : Entity