#pragma once

#include <saas/library/sharding/sharding.h>

#include <library/cpp/getopt/last_getopt.h>

#include <util/generic/string.h>

namespace NSaas {
    struct TCommonContext {
        TString MRServer;
        TString SrcTable;
        TString DstTable;
        TString MasterTable;
        ui64 SlaveTableTimestamp;
        NSaas::ShardingType ShardingType;
        bool ProtoText = false;
    };

    void AddCommonOpts(NLastGetopt::TOpts& opts, NSaas::TCommonContext& context, const bool allowPrototext);
}
