mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
more using
This commit is contained in:
parent
f2d7842563
commit
0867812c1f
@ -68,7 +68,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
sqliteConnection.Open();
|
sqliteConnection.Open();
|
||||||
}
|
}
|
||||||
|
|
||||||
var command = sqliteConnection.CreateCommand();
|
using var command = sqliteConnection.CreateCommand();
|
||||||
command.CommandText = commandText;
|
command.CommandText = commandText;
|
||||||
using (var reader = command.ExecuteReader())
|
using (var reader = command.ExecuteReader())
|
||||||
{
|
{
|
||||||
@ -82,7 +82,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
public static void Execute(this SqliteConnection sqliteConnection, string commandText)
|
public static void Execute(this SqliteConnection sqliteConnection, string commandText)
|
||||||
{
|
{
|
||||||
sqliteConnection.EnsureOpen();
|
sqliteConnection.EnsureOpen();
|
||||||
var command = sqliteConnection.CreateCommand();
|
using var command = sqliteConnection.CreateCommand();
|
||||||
command.CommandText = commandText;
|
command.CommandText = commandText;
|
||||||
command.ExecuteNonQuery();
|
command.ExecuteNonQuery();
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
{
|
{
|
||||||
sqliteConnection.EnsureOpen();
|
sqliteConnection.EnsureOpen();
|
||||||
|
|
||||||
var command = sqliteConnection.CreateCommand();
|
using var command = sqliteConnection.CreateCommand();
|
||||||
command.CommandText = commandText;
|
command.CommandText = commandText;
|
||||||
command.ExecuteNonQuery();
|
command.ExecuteNonQuery();
|
||||||
}
|
}
|
||||||
@ -333,7 +333,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
public static void MoveNext(this SqliteCommand sqliteCommand)
|
public static void MoveNext(this SqliteCommand sqliteCommand)
|
||||||
{
|
{
|
||||||
sqliteCommand.Prepare();
|
sqliteCommand.Prepare();
|
||||||
var result = sqliteCommand.ExecuteNonQuery();
|
sqliteCommand.ExecuteNonQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte[] GetBlob(this SqliteDataReader reader, int index)
|
public static byte[] GetBlob(this SqliteDataReader reader, int index)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user