code: static void truncate(CallInfo callInfo, Table table) {
      final DB db = table.getDB();   
      db.access(callInfo, () -> {
        String sql = "TRUNCATE TABLE " + table.getName();
        table.setDirtyStatus(true);
        db.logSetup(callInfo, sql);
        try (WrappedStatement ws = db.compile(sql)) {
          ws.getStatement().execute();
        }
        return 0;
      });
  
    }
docs: Truncate table.
  @param callInfo Call info.
  @param table Table.