mirror of
https://github.com/project-redbud/FunGame-Server.git
synced 2025-12-05 08:09:03 +00:00
SQL 语句级别现在是 debug
This commit is contained in:
parent
d3cf91e014
commit
301c66baa5
@ -142,7 +142,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
|||||||
|
|
||||||
OpenConnection();
|
OpenConnection();
|
||||||
Script = script;
|
Script = script;
|
||||||
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api);
|
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api, LogLevel.Debug);
|
||||||
using MySqlCommand command = new(script, _connection);
|
using MySqlCommand command = new(script, _connection);
|
||||||
command.CommandType = CommandType;
|
command.CommandType = CommandType;
|
||||||
foreach (KeyValuePair<string, object> param in Parameters)
|
foreach (KeyValuePair<string, object> param in Parameters)
|
||||||
@ -206,7 +206,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
|||||||
|
|
||||||
OpenConnection();
|
OpenConnection();
|
||||||
Script = script;
|
Script = script;
|
||||||
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api);
|
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api, LogLevel.Debug);
|
||||||
using MySqlCommand command = new(script, _connection);
|
using MySqlCommand command = new(script, _connection);
|
||||||
command.CommandType = CommandType;
|
command.CommandType = CommandType;
|
||||||
foreach (KeyValuePair<string, object> param in Parameters)
|
foreach (KeyValuePair<string, object> param in Parameters)
|
||||||
@ -270,7 +270,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
|||||||
|
|
||||||
OpenConnection();
|
OpenConnection();
|
||||||
Script = script;
|
Script = script;
|
||||||
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api);
|
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api, LogLevel.Debug);
|
||||||
|
|
||||||
using MySqlCommand command = new(script, _connection)
|
using MySqlCommand command = new(script, _connection)
|
||||||
{
|
{
|
||||||
@ -335,7 +335,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
|||||||
|
|
||||||
OpenConnection();
|
OpenConnection();
|
||||||
Script = script;
|
Script = script;
|
||||||
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api);
|
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api, LogLevel.Debug);
|
||||||
|
|
||||||
using MySqlCommand command = new(script, _connection)
|
using MySqlCommand command = new(script, _connection)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -140,7 +140,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
|||||||
|
|
||||||
OpenConnection();
|
OpenConnection();
|
||||||
Script = script;
|
Script = script;
|
||||||
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api);
|
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api, LogLevel.Debug);
|
||||||
using SqliteCommand command = new(script, _connection);
|
using SqliteCommand command = new(script, _connection);
|
||||||
command.CommandType = CommandType;
|
command.CommandType = CommandType;
|
||||||
foreach (KeyValuePair<string, object> param in Parameters)
|
foreach (KeyValuePair<string, object> param in Parameters)
|
||||||
@ -206,7 +206,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
|||||||
|
|
||||||
OpenConnection();
|
OpenConnection();
|
||||||
Script = script;
|
Script = script;
|
||||||
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api);
|
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api, LogLevel.Debug);
|
||||||
using SqliteCommand command = new(script, _connection);
|
using SqliteCommand command = new(script, _connection);
|
||||||
command.CommandType = CommandType;
|
command.CommandType = CommandType;
|
||||||
foreach (KeyValuePair<string, object> param in Parameters)
|
foreach (KeyValuePair<string, object> param in Parameters)
|
||||||
@ -272,7 +272,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
|||||||
|
|
||||||
OpenConnection();
|
OpenConnection();
|
||||||
Script = script;
|
Script = script;
|
||||||
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api);
|
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api, LogLevel.Debug);
|
||||||
using SqliteCommand command = new(script, _connection)
|
using SqliteCommand command = new(script, _connection)
|
||||||
{
|
{
|
||||||
CommandType = CommandType
|
CommandType = CommandType
|
||||||
@ -338,7 +338,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility
|
|||||||
|
|
||||||
OpenConnection();
|
OpenConnection();
|
||||||
Script = script;
|
Script = script;
|
||||||
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api);
|
ServerHelper.WriteLine("SQLQuery -> " + script, InvokeMessageType.Api, LogLevel.Debug);
|
||||||
using SqliteCommand command = new(script, _connection)
|
using SqliteCommand command = new(script, _connection)
|
||||||
{
|
{
|
||||||
CommandType = CommandType
|
CommandType = CommandType
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user