def main(unused_argv):
  assert FLAGS.db, 'Please pass --db'

  dbh = db.Connect(FLAGS.db)
  db_checksummer = drift_lib.DbChecksummer(dbh=dbh,
                                           result_table=FLAGS.result_table,
                                           golden_table=FLAGS.golden_table,
                                           log_table=FLAGS.log_table,
                                           job_started=FLAGS.job_started,
                                           scan_rate=FLAGS.scan_rate,
                                           secs_per_query=FLAGS.secs_per_query,
                                           rows_per_query=FLAGS.rows_per_query,
                                           hours_to_run=FLAGS.hours_to_run,
                                           utilization=FLAGS.utilization,
                                           tables_to_skip=FLAGS.skip_table,
                                           databases_to_skip=FLAGS.skip_db,
                                           engines_to_check=FLAGS.check_engine,
                                           tables_to_check=FLAGS.check_table)
  db_checksummer.ChecksumTables()
  dbh.Close()
This drives the standalone checksumming app.
dataset/ETHPy150Open google/mysql-tools/generate_checksums.py/main