예제 #1
0
        public static List <Dictionary <string, object> > UserDataQuery(string query, params object[] args)
        {
            GameDB.Connection = GameDB.Connect(UserDataDBConfig.Instance.Host, UserDataDBConfig.Instance.Username, UserDataDBConfig.Instance.Password, UserDataDBConfig.Instance.Database);
            var res = GameDB.Query(query, args);

            GameDB.Connection = null;
            return(res);
        }
예제 #2
0
 public static void UserDataExecute(string query, params object[] args)
 {
     GameDB.Connection = GameDB.Connect(UserDataDBConfig.Instance.Host, UserDataDBConfig.Instance.Username, UserDataDBConfig.Instance.Password, UserDataDBConfig.Instance.Database);
     GameDB.Execute(query, args);
     GameDB.Connection = null;
 }