MySQLThreadSafeConnection

public class MySQLThreadSafeConnection: MySQLConnection

A thread-safe implementation of SwiftKuery.Connection protocol for MySQL. Instances of MySQLThreadSafeConnection can be safely shared between multiple threads.

  • Establish a connection with the database.

    Parameter

    Parameter onCompletion: The function to be called when the connection is established.

    Declaration

    Swift

    public override func connect(onCompletion: (QueryError?) -> ())

    Parameters

    onCompletion

    The function to be called when the connection is established.

  • Close the connection to the database.

    Declaration

    Swift

    public override func closeConnection()