diff options
| author | JPVenson <github@jpb.email> | 2025-01-27 18:21:47 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2025-01-27 18:21:47 +0000 |
| commit | ce00bc076e9a97197e7e7e83276013518ce84ec5 (patch) | |
| tree | c8f4ca5cb439d0c739aa84e16b45a57473fafb19 /Jellyfin.Database/Jellyfin.Database.Implementations/DbConfiguration/PostgreSqlOptions.cs | |
| parent | 433640d98534667602bfaac08ce7cdb600a8377b (diff) | |
Fixed postgres sql provider
Diffstat (limited to 'Jellyfin.Database/Jellyfin.Database.Implementations/DbConfiguration/PostgreSqlOptions.cs')
| -rw-r--r-- | Jellyfin.Database/Jellyfin.Database.Implementations/DbConfiguration/PostgreSqlOptions.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Jellyfin.Database/Jellyfin.Database.Implementations/DbConfiguration/PostgreSqlOptions.cs b/Jellyfin.Database/Jellyfin.Database.Implementations/DbConfiguration/PostgreSqlOptions.cs new file mode 100644 index 000000000..1f7c30b09 --- /dev/null +++ b/Jellyfin.Database/Jellyfin.Database.Implementations/DbConfiguration/PostgreSqlOptions.cs @@ -0,0 +1,39 @@ +using System; + +namespace Jellyfin.Server.Implementations.DatabaseConfiguration; + +/// <summary> +/// Options specific to run jellyfin on a postgreSql database. +/// </summary> +public class PostgreSqlOptions +{ + /// <summary> + /// Gets or Sets the Port. Defaults to 5432. + /// </summary> + public required int Port { get; set; } = 5432; + + /// <summary> + /// Gets or Sets the Server name. + /// </summary> + public required string ServerName { get; set; } + + /// <summary> + /// Gets or Sets the username. + /// </summary> + public required string Username { get; set; } + + /// <summary> + /// Gets or Sets the password. + /// </summary> + public required string Password { get; set; } + + /// <summary> + /// Gets or Sets the database name. Defaults to "Jellyfin". + /// </summary> + public string DatabaseName { get; set; } = "Jellyfin"; + + /// <summary> + /// Gets or Sets the timeout in secounds before a running command is terminated. Defaults to 30. + /// </summary> + public int Timeout { get; set; } = 30; +} |
