mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 20:57:35 +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 {
|
throws ClassNotFoundException, IllegalArgumentException {
|
||||||
HikariConfig config = new HikariConfig();
|
HikariConfig config = new HikariConfig();
|
||||||
config.setPoolName("AuthMeSQLitePool");
|
config.setPoolName("AuthMeSQLitePool");
|
||||||
config.setDataSourceClassName("org.sqlite.javax.SQLiteConnectionPoolDataSource");
|
config.setDriverClassName("org.sqlite.JDBC");
|
||||||
config.setJdbcUrl("jdbc:sqlite:plugins/AuthMe/" + database + ".db");
|
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.setConnectionTestQuery("SELECT 1");
|
||||||
config.setMaxLifetime(180000); // 3 Min
|
config.setMaxLifetime(180000); // 3 Min
|
||||||
config.setIdleTimeout(60000); // 1 Min
|
config.setIdleTimeout(60000); // 1 Min
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
DataSource:
|
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
|
backend: sqlite
|
||||||
# Enable database caching
|
# Enable database caching
|
||||||
caching: true
|
caching: true
|
||||||
|
Loading…
Reference in New Issue
Block a user