mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
27 lines
856 B
C#
27 lines
856 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace ACE.Common
|
|
{
|
|
public class MySqlConfiguration
|
|
{
|
|
public string Host { get; set; } = "127.0.0.1";
|
|
|
|
public uint Port { get; set; } = 3306;
|
|
|
|
public string Database { get; set; } = "";
|
|
|
|
public string Username { get; set; } = "";
|
|
|
|
public string Password { get; set; } = "";
|
|
|
|
public bool EnableDetailedErrors { get; set; } = false;
|
|
|
|
public bool EnableSensitiveDataLogging { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Common connection options used when connecting to SQL database engine.
|
|
/// </summary>
|
|
[JsonIgnore]
|
|
public string ConnectionOptions { get; } = "DefaultCommandTimeout=120;TreatTinyAsBoolean=False;SslMode=None;AllowPublicKeyRetrieval=True;AllowUserVariables=True;ApplicationName=ACEmulator";
|
|
}
|
|
}
|