blob: e2088704dcdfc9fd14fa51af27f0c49ff9a507c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Jellyfin.Database.Implementations.DbConfiguration;
/// <summary>
/// Defines the options for a custom database connector.
/// </summary>
public class CustomDatabaseOptions
{
/// <summary>
/// Gets or sets the Plugin name to search for database providers.
/// </summary>
public required string PluginName { get; set; }
/// <summary>
/// Gets or sets the plugin assembly to search for providers.
/// </summary>
public required string PluginAssembly { get; set; }
/// <summary>
/// Gets or sets the connection string for the custom database provider.
/// </summary>
public required string ConnectionString { get; set; }
/// <summary>
/// Gets or sets the list of extra options for the custom provider.
/// </summary>
#pragma warning disable CA2227 // Collection properties should be read only
public Collection<CustomDatabaseOption> Options { get; set; } = [];
#pragma warning restore CA2227 // Collection properties should be read only
}
|