int main(){ LogDao logdao; logdao.connectDb("openlab/open123"); MatchedLogRec mlog={"testproc",10000,100,1200,1100, "127.0.0.1","192.168.0.23" }; logdao.saveData(mlog); logdao.commit(); logdao.disConnect(); }
int main(){ LogDao logdao; logdao.connect("openlab/open123"); MatchedLogRec mlog={"openlab",9527, 1000,3000,2000,"192.168.1.110", "192.168.0.20"}; logdao.saveData(mlog); logdao.commit(); logdao.disConnect(); }
int main(){ MatchedLogRec mlog={"meixi",10000, 1000,5000,4000,"192.168.110.119", "192.168.1.91"}; LogDao logdao; logdao.connect("openlab/open123"); logdao.saveData(mlog); logdao.commit(); logdao.disConnect(); }