Clean up SqliteItemRepository

* remove dead code
* reduce allocations
This commit is contained in:
Bond_009
2022-02-15 22:27:38 +01:00
parent 5825a0572b
commit 23ea14aa27
5 changed files with 52 additions and 326 deletions

View File

@@ -26,9 +26,6 @@ namespace Emby.Server.Implementations.Data
DbFilePath = Path.Combine(appPaths.DataPath, "library.db");
}
/// <inheritdoc />
public string Name => "SQLite";
/// <summary>
/// Opens the connection to the database.
/// </summary>
@@ -102,7 +99,7 @@ namespace Emby.Server.Implementations.Data
continue;
}
statement.TryBind("@UserId", user.Id.ToByteArray());
statement.TryBind("@UserId", user.Id);
statement.TryBind("@InternalUserId", user.InternalId);
statement.MoveNext();