[PR #14466] [MERGED] Allow loading of Database options for DB provider #13818

Closed
opened 2025-12-22 10:05:16 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/14466
Author: @JPVenson
Created: 7/13/2025
Status: Merged
Merged: 7/15/2025
Merged by: @crobibero

Base: masterHead: bugfix/ProvideSettingsForDatabaseOnInit


📝 Commits (2)

  • c189272 Allow loading of Database options for DB provider
  • 2f1c479 Enable sqlite Db options via database.xml

📊 Changes

3 files changed (+13 additions, -4 deletions)

View changed files

📝 Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs (+1 -1)
📝 src/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs (+3 -1)
📝 src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/SqliteDatabaseProvider.cs (+9 -2)

📄 Description

Allow DatabaseProvider access to the DatabaseConfigurationOptions from the settings file to better handle custom configuration

For Sqlite its now supported to set the folowing options via the database.xml

 <CustomProviderOptions>
    <Options>
      <CustomDatabaseOption>
        <Key>Cache</Key>
        <Value>Shared</Value>
      </CustomDatabaseOption>
      <CustomDatabaseOption>
        <Key>Pooling</Key>
        <Value>True</Value>
      </CustomDatabaseOption>
    </Options>
  </CustomProviderOptions>

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/14466 **Author:** [@JPVenson](https://github.com/JPVenson) **Created:** 7/13/2025 **Status:** ✅ Merged **Merged:** 7/15/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `bugfix/ProvideSettingsForDatabaseOnInit` --- ### 📝 Commits (2) - [`c189272`](https://github.com/jellyfin/jellyfin/commit/c18927220dd9372a952cb915ebb589c42a01ae73) Allow loading of Database options for DB provider - [`2f1c479`](https://github.com/jellyfin/jellyfin/commit/2f1c479c162d1978dceb8a434c0e897566944a31) Enable sqlite Db options via database.xml ### 📊 Changes **3 files changed** (+13 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs` (+1 -1) 📝 `src/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs` (+3 -1) 📝 `src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/SqliteDatabaseProvider.cs` (+9 -2) </details> ### 📄 Description Allow DatabaseProvider access to the DatabaseConfigurationOptions from the settings file to better handle custom configuration For Sqlite its now supported to set the folowing options via the database.xml ```xml <CustomProviderOptions> <Options> <CustomDatabaseOption> <Key>Cache</Key> <Value>Shared</Value> </CustomDatabaseOption> <CustomDatabaseOption> <Key>Pooling</Key> <Value>True</Value> </CustomDatabaseOption> </Options> </CustomProviderOptions> ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 10:05:16 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#13818
No description provided.