mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 05:24:34 +02:00
more work on commands
- moved script object to wrapper class to catch and log exceptions - added loggers for basepacket/subpacket (todo: colour and use them in NLog.config) - finished up most commands (todo: !property and !property2) - todo: create and use mysql wrapper class to log exceptions
This commit is contained in:
parent
57b9d5ab99
commit
1ad2b5d7d0
35 changed files with 780 additions and 958 deletions
80
FFXIVClassic Common Class Lib/Sql.cs
Normal file
80
FFXIVClassic Common Class Lib/Sql.cs
Normal file
|
@ -0,0 +1,80 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using MySql.Data.MySqlClient;
|
||||
using NLog;
|
||||
|
||||
namespace FFXIVClassic.Common
|
||||
{
|
||||
/*
|
||||
class SqlCommand
|
||||
{
|
||||
public static Logger Log = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public SqlCommand()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public SqlCommand(string cmdText)
|
||||
{
|
||||
try
|
||||
{
|
||||
MySqlCommand.MySqlCommand("");
|
||||
}
|
||||
}
|
||||
public SqlCommand(string cmdText, MySqlConnection connection);
|
||||
public SqlCommand(string cmdText, MySqlConnection connection, MySqlTransaction transaction);
|
||||
|
||||
~SqlCommand()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public int CacheAge { get; set; }
|
||||
|
||||
public string CommandText { get; set; }
|
||||
public int CommandTimeout { get; set; }
|
||||
|
||||
public CommandType CommandType { get; set; }
|
||||
|
||||
public MySqlConnection Connection { get; set; }
|
||||
|
||||
public bool DesignTimeVisible { get; set; }
|
||||
public bool EnableCaching { get; set; }
|
||||
|
||||
public bool IsPrepared { get; }
|
||||
|
||||
public long LastInsertedId { get; }
|
||||
|
||||
public MySqlParameterCollection Parameters { get; }
|
||||
|
||||
public MySqlTransaction Transaction { get; set; }
|
||||
public UpdateRowSource UpdatedRowSource { get; set; }
|
||||
protected DbConnection DbConnection { get; set; }
|
||||
protected DbParameterCollection DbParameterCollection { get; }
|
||||
protected DbTransaction DbTransaction { get; set; }
|
||||
|
||||
public IAsyncResult BeginExecuteNonQuery();
|
||||
public IAsyncResult BeginExecuteNonQuery(AsyncCallback callback, object stateObject);
|
||||
public IAsyncResult BeginExecuteReader();
|
||||
public IAsyncResult BeginExecuteReader(CommandBehavior behavior);
|
||||
public void Cancel();
|
||||
public SqlCommand Clone();
|
||||
public MySqlParameter CreateParameter();
|
||||
public void Dispose();
|
||||
public int EndExecuteNonQuery(IAsyncResult asyncResult);
|
||||
public MySqlDataReader EndExecuteReader(IAsyncResult result);
|
||||
public int ExecuteNonQuery();
|
||||
public MySqlDataReader ExecuteReader();
|
||||
public MySqlDataReader ExecuteReader(CommandBehavior behavior);
|
||||
public object ExecuteScalar();
|
||||
public void Prepare();
|
||||
protected DbParameter CreateDbParameter();
|
||||
protected void Dispose(bool disposing);
|
||||
protected DbDataReader ExecuteDbDataReader(CommandBehavior behavior);
|
||||
}
|
||||
*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue