MySQLCredentials

public class MySQLCredentials

Contains the credentials for a MySQL service instance. You will typically receive an instance of this type through cloudEnv.getMySQLCredentials(name: String).

Reference MySQL.

  • The database name from the MySQL service instance credentials.

    Declaration

    Swift

    public let database: String
  • The host name from the MySQL service instance credentials.

    Declaration

    Swift

    public let host: String
  • The username from the MySQL service instance credentials.

    Declaration

    Swift

    public let username: String
  • The password from the MySQL service instance credentials.

    Declaration

    Swift

    public let password: String
  • The port from the MySQL service instance credentials.

    Declaration

    Swift

    public let port: Int
  • Initializes an instance of the MySQL service credentials.

    Declaration

    Swift

    public init(
      database:   String,
      host:       String,
      username:   String,
      password:   String,
      port:       Int)