mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
feat: add support for PostgreSQL data storage (#616)
Signed-off-by: PseudoResonance <[email protected]>
This commit is contained in:
11 files changed
+1386
-17
No files matched your search
@@ -69,10 +69,10 @@ public final class Settings {
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public static class DatabaseSettings {
|
||||
|
||||
@Comment("Type of database to use (SQLITE, H2, MYSQL, or MARIADB)")
|
||||
@Comment("Type of database to use (SQLITE, H2, MYSQL, MARIADB, or POSTGRESQL)")
|
||||
private Database.Type type = Database.Type.SQLITE;
|
||||
|
||||
@Comment("Specify credentials here if you are using MYSQL or MARIADB")
|
||||
@Comment("Specify credentials here if you are using MYSQL, MARIADB, or POSTGRESQL")
|
||||
private DatabaseCredentials credentials = new DatabaseCredentials();
|
||||
|
||||
@Getter
|
||||
@@ -89,7 +89,7 @@ public final class Settings {
|
||||
"useUnicode=true", "characterEncoding=UTF-8");
|
||||
}
|
||||
|
||||
@Comment({"MYSQL / MARIADB database Hikari connection pool properties",
|
||||
@Comment({"MYSQL / MARIADB / POSTGRESQL database Hikari connection pool properties",
|
||||
"Don't modify this unless you know what you're doing!"})
|
||||
private PoolOptions poolOptions = new PoolOptions();
|
||||
|
||||
|
||||
@@ -493,7 +493,8 @@ public abstract class Database {
|
||||
MYSQL("MySQL", "mysql"),
|
||||
MARIADB("MariaDB", "mariadb"),
|
||||
SQLITE("SQLite", "sqlite"),
|
||||
H2("H2", "h2");
|
||||
H2("H2", "h2"),
|
||||
POSTGRESQL("PostgreSQL", "postgresql");
|
||||
|
||||
private final String displayName;
|
||||
private final String protocol;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user