Socket

constructor(host: String, port: Int? = null, user: String, password: String, database: String)(source)

Parameters

host

the database server hostname or IP address.

port

the database server port, or null to use the default port for the database type.

user

the username for authentication.

password

the password for authentication.

database

the name of the database to connect to.