2025-06-04 01:53:37 +03:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2025-03-25 15:30:22 +00:00
|
|
|
namespace Jellyfin.Database.Implementations.DbConfiguration;
|
2025-01-26 20:45:28 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Options to configure jellyfins managed database.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DatabaseConfigurationOptions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the type of database jellyfin should use.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public required string DatabaseType { get; set; }
|
2025-06-04 00:15:22 +03:00
|
|
|
|
2025-06-04 01:53:37 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the options required to use a custom database provider.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public CustomDatabaseOptions? CustomProviderOptions { get; set; }
|
|
|
|
|
|
2025-06-04 00:15:22 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the kind of locking behavior jellyfin should perform. Possible options are "NoLock", "Pessimistic", "Optimistic".
|
|
|
|
|
/// Defaults to "NoLock".
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DatabaseLockingBehaviorTypes LockingBehavior { get; set; }
|
2025-01-26 20:45:28 +00:00
|
|
|
}
|