MCPcopy Create free account
hub / github.com/epcdiy/timemachineplus / beginbackup

Method beginbackup

src/main/java/serviceRun.java:249–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247 }
248
249 private int beginbackup() throws SQLException {
250 mysqlHelper.exeSql("insert into tb_backup (begintime) values(now())");
251 ResultSet ret=mysqlHelper.querySql("select LAST_INSERT_ID() from tb_backup");
252 if(ret!=null&&ret.next())
253 {
254 return ret.getInt("LAST_INSERT_ID()");
255 }
256 return -1;
257 }
258
259 private void finishbackup()
260 {

Callers 1

XCopyMethod · 0.95

Calls 2

exeSqlMethod · 0.80
querySqlMethod · 0.80

Tested by

no test coverage detected