docs: def get_mysql_core(connection_args, *, cursor_factory=None, edit_connection=None):
    """Creates a simple MySQL core. Requires the pymysql library."""
    import pymysql
  
    def opener():
      """Opens a single connection with the scope-captured connection string."""
      cn = pymysql.connect(**connection_args)
      if cursor_factory:
        cn.cursorclass = cursor_factory
      if edit_connection:
        edit_connection(cn)
      return cn
  
    return InjectedDataAccessCore(
      opener,
      default_connection_closer,
      ("%({0})s", "%s", SQL_CAST),
      empty_params=None,
      supports_timezones=False,
      supports_returning_syntax=False,
      get_autocommit=get_mysql_autocommit,
      set_autocommit=set_mysql_autocommit)