Exemple #1
0
        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);
        }
Exemple #2
0
 public MySQLQuery(MySQLConnection parent, string sql)
 {
     Connection = parent;
     DBCommand  = new MySqlCommand(sql, Connection.DBConnection);
 }