|
@@ -3,21 +3,13 @@
|
|
|
[yesql.core :refer [defqueries]])
|
|
|
(:import com.mchange.v2.c3p0.ComboPooledDataSource))
|
|
|
|
|
|
-#_(def db-spec
|
|
|
+(def db-spec
|
|
|
{:classname "com.mysql.jdbc.Driver"
|
|
|
:subprotocol "mysql"
|
|
|
:subname "//localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
|
|
|
:user "benchmarkdbuser"
|
|
|
:password "benchmarkdbpass"})
|
|
|
|
|
|
-(def db-spec
|
|
|
- {:classname "com.mysql.jdbc.Driver"
|
|
|
- :subprotocol "mysql"
|
|
|
- :subname "//localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
|
|
|
- :user "root"
|
|
|
- :password "root"
|
|
|
- })
|
|
|
-
|
|
|
(defn pool
|
|
|
[spec]
|
|
|
{:datasource
|