createDataSource

fun createDataSource(dbServerName: String = "localhost", dbName: String, user: String = "", pWord: String = "", portNumber: Int = 5432): DataSource

Return

the DataSource for getting connections

Parameters

dbServerName

the name of the database server, must not be null

dbName

the name of the database, must not be null

user

the user

pWord

the password

portNumber

a valid port number