Tuproq
public final class Tuproq
Undocumented
-
Undocumented
Declaration
Swift
public let eventLoopGroup: EventLoopGroup -
Undocumented
Declaration
Swift
public private(set) var configuration: Configuration { get } -
Undocumented
Declaration
Swift
public init( eventLoopGroup: EventLoopGroup? = nil, logger: Logger = .init(label: "dev.tuproq"), configuration: Configuration, connectionFactory: @escaping ConnectionFactory ) -
Undocumented
Declaration
Swift
public func addMapping<M>(_ mapping: M) where M : EntityMapping -
Undocumented
Declaration
Swift
public func mapping<E>(from entity: E) -> (any EntityMapping)? where E : Entity -
Undocumented
Declaration
Swift
public func mapping<E>(from entityType: E.Type) -> (any EntityMapping)? where E : Entity -
Undocumented
Declaration
Swift
public func mapping(from entityType: any Entity.Type) -> (any EntityMapping)? -
Undocumented
Declaration
Swift
public func mapping(entityName: String) -> (any EntityMapping)? -
Undocumented
Declaration
Swift
public func mapping(tableName: String) -> (any EntityMapping)? -
Undocumented
Declaration
Swift
public func createEntityManager() -> any EntityManager -
migrate()AsynchronousUndocumented
Declaration
Swift
public func migrate() async throws -
beginTransaction()AsynchronousUndocumented
Declaration
Swift
public func beginTransaction() async throws -
commitTransaction()AsynchronousUndocumented
Declaration
Swift
public func commitTransaction() async throws -
rollbackTransaction()AsynchronousUndocumented
Declaration
Swift
public func rollbackTransaction() async throws -
Undocumented
Declaration
Swift
public func createTables() -> [String] -
Undocumented
Declaration
Swift
public func createSchema() -> String
View on GitHub
Install in Dash
Tuproq Class Reference