Working sqlitehikari! ;D

This commit is contained in:
Gabriele C 2015-09-13 12:25:12 +02:00
parent b2234b1e0d
commit d8c2a25116
2 changed files with 3 additions and 3 deletions

View File

@ -122,9 +122,8 @@ public class SQLite_HIKARI implements DataSource {
throws ClassNotFoundException, IllegalArgumentException {
HikariConfig config = new HikariConfig();
config.setPoolName("AuthMeSQLitePool");
config.setDataSourceClassName("org.sqlite.javax.SQLiteConnectionPoolDataSource");
config.setDriverClassName("org.sqlite.JDBC");
config.setJdbcUrl("jdbc:sqlite:plugins/AuthMe/" + database + ".db");
config.setInitializationFailFast(true); // Don't start the plugin if the database is unavariable
config.setConnectionTestQuery("SELECT 1");
config.setMaxLifetime(180000); // 3 Min
config.setIdleTimeout(60000); // 1 Min

View File

@ -1,5 +1,6 @@
DataSource:
# Can be set to: sqlite, mysql
# Can be set to: sqlite, sqlitehikari, mysql
# sqlitehikari should be more fast than normal sqlite but it's an experimental feature!
backend: sqlite
# Enable database caching
caching: true