Socket

class Socket(val host: String, val port: Int? = null, val user: String, val password: String, val database: String) : ConnectionConfig(source)

Standard TCP/IP socket connection configuration.

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.

Constructors

Link copied to clipboard
constructor(host: String, port: Int? = null, user: String, password: String, database: String)

Properties

Link copied to clipboard
open override val database: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val port: Int?
Link copied to clipboard
Link copied to clipboard
open override val userAndRole: String

The user and role name used for authentication.

Functions

Link copied to clipboard
fun ConnectionConfig.Socket.exposedDatabaseConnect(rdbms: String, driver: String, setupConnection: (Connection) -> Unit = {}, databaseConfig: DatabaseConfig? = null, manager: (Database) -> TransactionManager = { TransactionManager(it) }): Database

Further configurations such as setupConnection, databaseConfig, and manager are most likely not needed because the Exposed Database is mostly only used for table creation and SQL generation.

Link copied to clipboard
suspend fun ConnectionConfig.initConnection(sqlConnection: SqlConnection, extra: CoConnectHandler?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Converts this socket connection config to an EvscConfig using the same config for both Vert.x SqlClient and Exposed Database. This is the simplest configuration for standard TCP/IP connections.