DB2Credentials

public class DB2Credentials

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

Reference Db2.

  • The database name from the Db2 service instance credentials.

    Declaration

    Swift

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

    Declaration

    Swift

    public let host     : String
  • The port from the Db2 service instance credentials.

    Declaration

    Swift

    public let port     : Int
  • uid

    The user ID from the Db2 service instance credentials.

    Declaration

    Swift

    public let uid      : String
  • pwd

    The password from the Db2 service instance credentials.

    Declaration

    Swift

    public let pwd      : String
  • Initializes an instance of the Db2 service credentials.

    Declaration

    Swift

    public init (
      database:   String,
      host:       String,
      port:       Int,
      uid:        String,
      pwd:        String )