original_docstring: Delete rows with given event ids from given table.
docstring: Delete rows with given event ids from given table.
docstring_tokens: Delete rows with given event ids from given table .
code: def delete_from_table_by_event_ids(cursor, event_ids: list, table: str, column: str = 'start_event_id'):
      """Delete rows with given event ids from given table."""
      try:
          # table is a value set by the code: not possible to be sql injected from a request
          cursor.execute(f"""
              DELETE FROM {table}
              WHERE {column} in ({stringify_list(event_ids)})
          """)
      except Exception as err:
          current_app.logger.error(f'Error in Reset: Failed to delete rows for events {event_ids} in table: {table}')
          raise err
code_tokens: def delete_from_table_by_event_ids ( cursor , event_ids : list , table : str , column : str = 'start_event_id' ) : try : cursor . execute ( f"""
              DELETE FROM {table}
              WHERE {column} in ({stringify_list(event_ids)})
          """ ) except Exception as err : current_app . logger . error ( f'Error in Reset: Failed to delete rows for events {event_ids} in table: {table}' ) raise err
short_docstring: Delete rows with given event ids from given table.
short_docstring_tokens: Delete rows with given event ids from given table .
comment: """Delete rows with given event ids from given table."""$SEP$# table is a value set by the code: not possible to be sql injected from a request