allow setting databaseDialect
This commit is contained in:
parent
c5ad01eac7
commit
61def8ccb0
|
@ -33,7 +33,7 @@
|
|||
SENTRY_DSN = cfg.sentryDSN;
|
||||
"hibernate.connection.url" = "jdbc:postgresql://${cfg.postgresDBHost}:${toString cfg.postgresDBPort}/${cfg.postgresDBName}";
|
||||
"hibernate.connection.driver_class" = "org.postgresql.Driver";
|
||||
"hibernate.dialect" = "org.hibernate.dialect.PostgreSQLDialect";
|
||||
"hibernate.dialect" = cfg.databaseDialect;
|
||||
"hibernate.connection.username" = "${cfg.postgresDBUsername}";
|
||||
"hibernate.connection.password" =
|
||||
if cfg.postgresDBPasswordFile == null
|
||||
|
|
|
@ -109,6 +109,11 @@ in {
|
|||
description = "Password file to use for postgres, loaded at runtime";
|
||||
};
|
||||
|
||||
databaseDialect = mkOption {
|
||||
type = types.str;
|
||||
default = "org.hibernate.dialect.CockroachDialect";
|
||||
};
|
||||
|
||||
proxyIPv4Only = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Reference in a new issue