mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-26 02:27:50 +01:00
Working sqlitehikari! ;D
This commit is contained in:
parent
b2234b1e0d
commit
d8c2a25116
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user