public Table connect(string host, string username, string password, string database, int port) { MySQLConnection c = new MySQLConnection(); c.plugin = plugin; c.hostname = host; c.user = username; c.password = password; c.database = database; c.port = port; c.db = new Table(plugin.lua); c.db["_object"] = c; c.db.MetaTable = plugin.wrappedMeta; return(c.db); }
public MySQLQuery(MySQLConnection parent, string sql) { Connection = parent; DBCommand = new MySqlCommand(sql, Connection.DBConnection); }