Javadoc
Creates a configuration based on `Properties` object with the specified
prefix. For instance, if the prefix is `myDB`, there should be a property
`myDB.user` defined.
Required configurations:
`dataSourceSupplierClass` -> A class that implements
`Supplier>` and has a constructor with
one parameter `Config config`.
`host` -> The database host
`port` -> The database port
`user` -> The database user
Optional configurations:
`charset` -> the database charset to be parsed using
java.nio.charset.Charset.forname. Default: Charset.defaultCharset()
`password` -> The database password. Default: empty
`database` -> The database name (sometimes referred as schema). Default:
empty
`poolMaxSize` -> The maximum number of connections. Default: unlimited
`poolMaxWaiters` -> Sets the size of the wait queue for database
connections. After this limit, the pool will return failures if no new
connections can be established.
`poolValidationIntervalSeconds` -> If set, the connection pool will
validate connections using the specified interval. Default: no validation
`connectionTimeoutSeconds` -> If set, the pool will fail to acquire a
connection if it takes longer than the specified timeout. Default: no
timeout
`queryTimeoutSeconds` -> If set, the pool will fail to execute a query if
it takes longer than the specified timeout. Default: no timeout
`encodingClasses` -> Allows users to register a comma-separated list of
custom encoding classes. The classes must have an empty constructor and
extend the driver-specific `Encoding` class.
`ssl.mode` -> Sets the SSL mode. See Config.Ssl.Mode for details. Default:
empty
`ssl.rootCert` -> The path to the root certificate file. This configuration
is valid only if `ssl.mode` is set. Default: empty
`embedded.supplierClass` -> If set, the data source will be backed by an
embedded database. See `Config.Embedded` for details. Default: empty
`embedded.version` -> Sets the embedded database version. Only valid if
`embedded.supplierClass` is defined. See `Config.Embedded` for more
details.