'jasync-sql MySQL extra connection parameters
How do I include extra information in the connection url? I looked at the code and it seems that anything after the ?
will get thrown out.
val connection = MySQLConnectionBuilder.createConnectionPool(
"jdbc:mysql://$host:$port/$database" +
"?user=$username" +
"&password=$password" +
"&zeroDateTimeBehavior=CONVERT_TO_NULL" +
"&sessionVariables=wait_timeout=1800000"
)
Where does my zeroDateTimeBehavior
and sessionVariables
go? Is there some other place to put it? It's not in the builder or any of the config classes/interfaces.
Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|