PostgreSQL

public final class PostgreSQL

Undocumented

  • Undocumented

    Declaration

    Swift

    public let eventLoopGroup: EventLoopGroup
  • Undocumented

    Declaration

    Swift

    public let configuration: Configuration
  • Undocumented

    Declaration

    Swift

    public let logger: Logger
  • Undocumented

    Declaration

    Swift

    public let channel: Channel
  • Undocumented

    Declaration

    Swift

    public private(set) var isOpen: Bool { get }
  • Undocumented

    Declaration

    Swift

    public internal(set) var serverParameters: [String : String] { get }
  • Undocumented

    Declaration

    Swift

    public init(eventLoopGroup: EventLoopGroup? = nil, configuration: Configuration = .init()) async throws
  • close() Asynchronous

    Undocumented

    Declaration

    Swift

    public func close() async throws
  • simpleQuery(_:) Asynchronous

    Undocumented

    Declaration

    Swift

    @discardableResult
    public func simpleQuery(_ string: String) async throws -> [Result]
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func query(
        _ string: String,
        name: String = "",
        arguments parameters: PostgreSQLCodable?...
    ) async throws -> Result?
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func query(
        _ string: String,
        name: String = "",
        arguments parameters: [PostgreSQLCodable?]
    ) async throws -> Result?
  • beginTransaction() Asynchronous

    Undocumented

    Declaration

    Swift

    public func beginTransaction() async throws
  • commitTransaction() Asynchronous

    Undocumented

    Declaration

    Swift

    public func commitTransaction() async throws
  • rollbackTransaction() Asynchronous

    Undocumented

    Declaration

    Swift

    public func rollbackTransaction() async throws
  • Undocumented

    See more

    Declaration

    Swift

    public struct Configuration : Equatable