node????mongodb????????
???????????? ???????[ 2016/9/21 11:08:07 ] ????????????? mongodb
remove: function(dataname?? removelanguage?? dealdata) {
var server = new mongodb.Server(dataconfig.dataurl?? dataconfig.dataport?? {
auto_reconnect: true
}); // ????mongodb????
var db = new mongodb.Db(dataconfig.dataname?? server?? {
safe: true
});
db.open(function(err?? db) {
if (err) {
console.log('?????????');
} else {
db.createCollection(dataname?? {
safe: true
}?? function(err?? collection) {
if (err) {
console.log('????????????');
} else {
collection.remove(removelanguage?? {
safe: true
}?? function(err?? result) {
dealdata(result);
db.close();
});
}
})
}
})
db.on("close"?? function(err?? data) {
if (err) {
console.log("??????????");
}
console.log('???????????');
});
}??
/*
@remove ??????????????
@dataname ?????????
@dealdata ???????????????????result????
*/
removeall: function(dataname?? dealdata) {
var server = new mongodb.Server(dataconfig.dataurl?? dataconfig.dataport?? {
auto_reconnect: true
}); // ????mongodb????
var db = new mongodb.Db(dataconfig.dataname?? server?? {
safe: true
});
db.open(function(err?? db) {
if (err) {
console.log('?????????');
} else {
db.createCollection(dataname?? {
safe: true
}?? function(err?? collection) {
if (err) {
console.log('????????????');
} else {
collection.remove({}?? {
safe: true
}?? function(err?? result) {
dealdata(result);
db.close();
});
}
})
}
})
db.on("close"?? function(err?? data) {
if (err) {
console.log("??????????");
}
console.log('???????????');
});
}
};
?????????????????????????
//????????
Mainpulation.select('test'?? {"title": "hello"}?? function(result) {
console.log("select??????");
console.log(result);
})
Mainpulation.insert('test'??{"insert":"hello"}??function(result){
console.log('inserts??????');
console.log(result);
})
Mainpulation.remove('test'??{"insert":"hello"}??function(result){
console.log(result);
})
Mainpulation.removeall('test'??function(result){
console.log(result);
})
Mainpulation.selectall('test'?? function(result) {
console.log('selectall??????');
console.log(result);
});
???????????????????????????????鵼????·??????????????
????module.exports = Mainpulation;
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
?????????????????????????Щ????????????????????TC???????????????Щ???????????????????????????????????????????????(java .net ?????)???mysql???????????????????ж????д???Python???????????????(DB2)??????BufferPool????????????????????????????????6??????????????????滮???????????????-????????SQL Server???????????????????λ?????PHP??SQL????????????????????Pythonд???NoSQL????????? SQL ?е????????????? SQL ?е?????????Java???????:?????MySQL???????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????