hoangtranwork
8/1/2016 - 4:12 AM

create connectionSource with MySQL driver v6

create connectionSource with MySQL driver v6

    /**
     * The data source instance that need to be public so we can close it in on-app-exit hook
     */
    private DataSource initDataSource(HikariConfig config) {
        return new HikariDataSource(config);
    }

    private ConnectionSource initConnectionSource(DataSource ds) throws SQLException {
        return new DataSourceConnectionSource(ds, new MySql6DbType());
    }