def __init__(_, mode):
    """
        mode - running mode of this batch. Map containing:
        = {
          incremental - boolean - whether to avoid updating data that did not change (optimization)
          order - string - order specification, limiting scripts to run
          dry_run - boolean - if set, don't execute statements for real
          display - boolean - display more information
          warn - boolean - display warnings (supressed by default)
          rewind - boolean - run in rewind mode
          threads - int - number of threads for parallel processing
          }
        """
    _.mode = {'incremental': False, 'display': False, 'warn': False,
        'dry_run': False, 'rewind': False, 'threads': 1}
    _.mode.update(mode)
    _.sources = []
    _.destination = None
    _.scripts = []
