public void Push(MySQLManager MySQLManager, Query Query) { try { switch (Query.OutType) { case QueryType.Action: MySqlHelper.ExecuteNonQuery(MySQLManager.QueryHandlerString, Query.Command, Query.Parameters.ToArray()); break; case QueryType.DataRow: Output = MySqlHelper.ExecuteDataRow(MySQLManager.QueryHandlerString, Query.Command, Query.Parameters.ToArray()); break; case QueryType.DataTable: Output = MySqlHelper.ExecuteDataset(MySQLManager.QueryHandlerString, Query.Command, Query.Parameters.ToArray()).Tables[0]; break; case QueryType.String: Output = Convert.ToString(MySqlHelper.ExecuteScalar(MySQLManager.QueryHandlerString, Query.Command, Query.Parameters.ToArray())); break; case QueryType.Integer: Output = Convert.ToInt32(MySqlHelper.ExecuteScalar(MySQLManager.QueryHandlerString, Query.Command, Query.Parameters.ToArray())); break; case QueryType.Boolean: Output = Convert.ToInt32(MySqlHelper.ExecuteScalar(MySQLManager.QueryHandlerString, Query.Command, Query.Parameters.ToArray())) > 0; break; } } catch { Output = null; } Query.Dispose(); }
public static void Start() { Console.WriteLine(@"______ _ "); Console.WriteLine(@"| ___ \ | | "); Console.WriteLine(@"| |_/ / ___ ___ _ __ ___ | |__ __ _ _ __ __ _ "); Console.WriteLine(@"| ___ \/ _ \ / _ \| '_ ` _ \| '_ \ / _` | '_ \ / _` |"); Console.WriteLine(@"| |_/ / (_) | (_) | | | | | | |_) | (_| | | | | (_| |"); Console.WriteLine(@"\____/ \___/ \___/|_| |_| |_|_.__/ \__,_|_| |_|\__, |"); Console.WriteLine(@" __/ |"); Console.WriteLine(@" |___/ "); Console.WriteLine(" This is made by Fuss and Nevachana"); Console.WriteLine(" </> Usa los comandos escribiendo commands </> "); Console.WriteLine(""); Console.ForegroundColor = ConsoleColor.Gray; Mysql = new MySQLManager("localhost", 3306, "root", "123", "test", true, 5, 9999); SocketSystem = new SocketSystem(); SocketSystem.ConstructSocket(IPAddress.Parse("127.0.0.1"), 2001, 10); SocketSystem.ConstructPooling(10000); }
public static void Push(MySQLManager MySQLManager, Query Query, out object Output) { QueryObject Obj = new QueryObject(); Obj.Push(MySQLManager, Query); Output = Obj.Output; if (Output == null) { Output = new object(); } Query.Dispose(); }
public void Pop(MySQLManager MySQLManager ,out object Output) { QueryObject.Push(MySQLManager, Querys.Pop(), out Output); }
public QueryObject Pop(MySQLManager MySQLManager) { QueryObject Obj = new QueryObject(); Obj.Push(MySQLManager, Querys.Pop()); return Obj; }