code: def _create_table():
      '''
      Create table if needed
      '''
      # Explicitely check if the table already exists as the library logs a
      # warning on CREATE TABLE
      query = .format(
              _mysql_kwargs['db'],
              _table_name,
          )
      cur, _ = run_query(client, query)
      r = cur.fetchone()
      cur.close()
      if r[0] == 1:
          return
  
      query = """CREATE TABLE IF NOT EXISTS {0} (
        bank CHAR(255),
        etcd_key CHAR(255),
        data MEDIUMBLOB,
        PRIMARY KEY(bank, etcd_key)
      );""".format(_table_name)
      log.info("mysql_cache: creating table %s", _table_name)
      cur, _ = run_query(client, query)
      cur.close()
docs: Create table if needed