tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
DatabaseConfiguration.cs
Go to the documentation of this file.
1using Newtonsoft.Json;
2using Newtonsoft.Json.Converters;
3
5{
9 public sealed class DatabaseConfiguration
10 {
14 public const string Section = "Database";
15
19 [JsonConverter(typeof(StringEnumConverter))]
20 public DatabaseType DatabaseType { get; set; }
21
25 public bool ResetAdminPassword { get; set; }
26
30 public string? ConnectionString { get; set; }
31
35 public bool DropDatabase { get; set; }
36
40 public string? ServerVersion { get; set; }
41 }
42}
Configuration options for the Database.DatabaseContext.
bool DropDatabase
If the database should be deleted on application startup. Should not be used in production!...
const string Section
The key for the Microsoft.Extensions.Configuration.IConfigurationSection the DatabaseConfiguration re...
string? ServerVersion
The string form of the global::System.Version of the target server.
string? ConnectionString
The connection string for the database.
bool ResetAdminPassword
If the admin user should be enabled and have it's password reset.
DatabaseType
Type of database to user.