#pragma once #include #include namespace DB { class IBlockInputStream; class IBlockOutputStream; class Block; /** Copies data from the InputStream into the OutputStream * (for example, from the database to the console, etc.) */ void copyData(IBlockInputStream & from, IBlockOutputStream & to, std::atomic * is_cancelled = nullptr); void copyData(IBlockInputStream & from, IBlockOutputStream & to, const std::function & is_cancelled); void copyData(IBlockInputStream & from, IBlockOutputStream & to, const std::function & is_cancelled, const std::function & progress); }