EntityManager
public protocol EntityManager : AnyObject
Undocumented
-
Undocumented
Declaration
Swift
associatedtype Q : QueryBuilder -
Undocumented
Declaration
Swift
var configuration: Configuration { get set } -
Undocumented
Declaration
Swift
func createQueryBuilder() -> Q -
find(_:Asynchronousid: ) Undocumented
Declaration
Swift
func find<E>(_ entityType: E.Type, id: E.ID) async throws -> E? where E : Entity -
flush()AsynchronousUndocumented
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(_:Default implementation, asynchronousarguments: ) Undocumented
Default Implementation
Undocumented
Declaration
Swift
@discardableResult func query<E>(_ string: String, arguments parameters: [Codable?]) async throws -> [E] where E : Entity -
query(_:Asynchronousarguments: ) Undocumented
Declaration
Swift
@discardableResult func query<E>(_ string: String, arguments parameters: Codable?...) async throws -> [E] where E : Entity -
query(_:Asynchronousarguments: ) Undocumented
Declaration
Swift
@discardableResult func query(_ string: String, arguments parameters: [Codable?]) async throws -> [[String : Any?]] -
query(_:Asynchronousarguments: ) 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
View on GitHub
Install in Dash
EntityManager Protocol Reference