exposedDatabaseConnect

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

Deprecated

The JDBC URL format is not actually universal.

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.


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

Deprecated

The JDBC URL format is not actually universal.