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
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Suitable for container testing.
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.