database : "webchat",
});
+if("name_hash" in config.alias)
+{
+ if(config.alias["name_hash"].type != "unsignednumber")
+ throw "name_hash???unsignednumber??????????";
+}else{
+ throw "name_hash?????????";
+}
+
+if("name" in config.alias)
+{
+ if(config.alias["name"].type != "text")
+ throw "name???text??????????";
+}else{
+ throw "name?????????";
+}
+
+if("password" in config.alias)
+{
+ if(config.alias["password"].type != "password")
+ throw "name???password??????????";
+}else{
+ throw "password?????????";
+}
+
+if("lastmodified" in config.alias)
+{
+ if(config.alias["lastmodified"].type != "datetime")
+ throw "lastmodified???text??????????";
+}else{
+ throw "lastmodified?????????";
+}
+
async.waterfall([
function(next){
var query = GetDropTableQuery("list");
pool.query(query,null,next);
},
],function(err){
- console.log(err);
+ if(err != null)
+ console.log(err);
process.exit();
});