aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
AgeCommit message (Collapse)Author
2024-09-07Migrated UserData from library sqlite db to jellyfin.dbJPVenson
2024-07-29Enable nullable for UserItemDataBond_009
MetadataResult.GetOrAddUserData doesn't ever get used and is probably broken since the migration to .NET Core as it still expects a Guid for userId
2024-06-06Backport pull request #11986 from jellyfin/release-10.9.zBond-009
Use only 1 write connection/DB Original-merge: cc4563a4779ff7e86526b09f5ac5a2e7ec71e56b Merged-by: crobibero <cody@robibe.ro> Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-06-06Backport pull request #11969 from jellyfin/release-10.9.zBond-009
Create readonly DB connections when possible Original-merge: a46c17e19fd593591b733208bc9b0488f8df9539 Merged-by: joshuaboniface <joshua@boniface.me> Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-04-12Add index for lastPlayedDate (#11342)Cody Robibero
2023-08-21fix userdata table not being committedcvium
2023-08-21remove readonlycvium
2023-08-21simplify extension methodscvium
2023-08-21remove runintransactioncvium
2023-08-21loading workscvium
2023-04-21POC sql connection poolBond_009
2022-12-07Use ArgumentException.ThrowIfNullOrEmptyBond_009
2022-10-06Use ArgumentNullException.ThrowIfNull helper methodBond_009
Did a simple search/replace on the whole repo (except the RSSDP project) This reduces LOC and should improve performance (methods containing a throw statement don't get inlined) ``` if \((\w+) == null\) \s+\{ \s+throw new ArgumentNullException\((.*)\); \s+\} ``` ``` ArgumentNullException.ThrowIfNull($1); ```
2022-02-16Merge pull request #7322 from Bond-009/db2Cody Robibero
2022-02-15Clean up SqliteItemRepositoryBond_009
* remove dead code * reduce allocations
2022-02-15Fix some warningsBond_009
2021-12-24Update StyleCopBond_009
2021-10-02Fix warnings in DataPatrick Barron
2021-09-03Fix some warningsBond_009
2021-08-28Remove more and more warningsCody Robibero
2021-05-21Bump SQLitePCL.pretty.netstandard to 3.0.1cvium
2021-05-20Enable nullable reference types for Emby.Server.ImplementationsBond_009
2021-05-16Rename SQL extension methodscvium
2021-05-16Reduce some allocationscvium
2021-02-13Minor improvementsBond_009
2020-10-12Fix SA 1116 warningsJan-Pieter Baert
2020-06-16Merge pull request #3343 from telans/comment-stopsBond-009
Add full stop at end of comments (SA1629)
2020-06-16fix SA1513/SA1516telans
2020-06-16Add full stop at end of comments (SA1629)telans
2020-06-15fix SA1005telans
2020-05-132nd half of changesPatrick Barron
2020-05-02Do not double dispose write lock and connection in user data repositoryMark Monteiro
2020-02-23Fix some warningsBond_009
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
2019-12-11More warnings (removed)Bond_009
2019-11-27Fix more warningsBond_009
2019-10-29More warning fixesBond_009
2019-08-16Improvements to UserManagerBond_009
2019-06-28Reworked PRAGMA statements useBond_009
2019-06-28Address commentsBond_009
2019-06-28Final fixesBond-009
2019-06-28Back to a single connectionBond-009
2019-06-28Use a connection pool instead of creating new connectionsBond-009
2019-06-28Simplify db codeBond-009
2019-03-01Don't mix LINQ and roreach loops for readabilityBond-009
2019-01-20Replaced injections of ILogger with ILoggerFactoryWilliam Taylor
This makes resolving dependencies from the container much easier as you cannot resolve with primitives parameters in a way that is any more readable. The aim of this commit is to change as little as possible with the end result, loggers that were newed up for the parent object were given the same name. Objects that used the base or app loggers, were given a new logger with an appropriate name. Also removed some unused dependencies.
2019-01-13ReSharper conform to 'var' settingsErwin de Haan
2019-01-13Visual Studio Reformat: Emby.Server.Implementations Part A-DaErwin de Haan
2019-01-10Mayor code cleanupErwin de Haan
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.
2018-12-30Use Microsoft.Extensions.Logging abstractionBond_009
2018-09-12Update to 3.5.2 and .net core 2.1stefan