1
0
Fork 0

allow setting databaseDialect

This commit is contained in:
chaos 2023-09-14 22:25:34 +01:00
parent c5ad01eac7
commit 61def8ccb0
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -33,7 +33,7 @@
SENTRY_DSN = cfg.sentryDSN; SENTRY_DSN = cfg.sentryDSN;
"hibernate.connection.url" = "jdbc:postgresql://${cfg.postgresDBHost}:${toString cfg.postgresDBPort}/${cfg.postgresDBName}"; "hibernate.connection.url" = "jdbc:postgresql://${cfg.postgresDBHost}:${toString cfg.postgresDBPort}/${cfg.postgresDBName}";
"hibernate.connection.driver_class" = "org.postgresql.Driver"; "hibernate.connection.driver_class" = "org.postgresql.Driver";
"hibernate.dialect" = "org.hibernate.dialect.PostgreSQLDialect"; "hibernate.dialect" = cfg.databaseDialect;
"hibernate.connection.username" = "${cfg.postgresDBUsername}"; "hibernate.connection.username" = "${cfg.postgresDBUsername}";
"hibernate.connection.password" = "hibernate.connection.password" =
if cfg.postgresDBPasswordFile == null if cfg.postgresDBPasswordFile == null

View file

@ -109,6 +109,11 @@ in {
description = "Password file to use for postgres, loaded at runtime"; description = "Password file to use for postgres, loaded at runtime";
}; };
databaseDialect = mkOption {
type = types.str;
default = "org.hibernate.dialect.CockroachDialect";
};
proxyIPv4Only = mkOption { proxyIPv4Only = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;