Configuration

case
class Configuration(username: String, host: String, port: Int, password: Option[String], database: Option[String], ssl: SSLConfiguration, charset: Charset, maximumMessageSize: Int, allocator: ByteBufAllocator, connectTimeout: Duration, testTimeout: Duration, queryTimeout: Option[Duration])

Contains the configuration necessary to connect to a database.

Value Params
allocator

the netty buffer allocator to be used

charset

charset for the connection, defaults to UTF-8, make sure you know what you are doing if you change this

connectTimeout

the timeout for connecting to servers

database

database name, defaults to no database

host

database host, defaults to "localhost"

maximumMessageSize

the maximum size a message from the server could possibly have, this limits possible OOM or eternal loop attacks the client could have, defaults to 16 MB. You can set this to any value you would like but again, make sure you know what you are doing if you do change it.

password

password, defaults to no password

port

database port, defaults to 5432

queryTimeout

the optional query timeout

ssl

ssl configuration

testTimeout

the timeout for connection tests performed by pools

username

database username

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product