Connection

public final class Connection

Undocumented

  • Undocumented

    Declaration

    Swift

    public let option: Option
  • Undocumented

    Declaration

    Swift

    public let logger: Logger
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public init(_ option: Option = .init())
  • connect() Asynchronous

    Undocumented

    Declaration

    Swift

    @discardableResult
    public func connect() async throws -> Self
  • 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 = "",
        parameters: Codable?...
    ) async throws -> Result?
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func query(
        _ string: String,
        name: String = "",
        parameters: [Codable?] = .init()
    ) 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 Option : Equatable