mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
21 lines
569 B
C++
21 lines
569 B
C++
#pragma once
|
|
|
|
#include <DB/Core/Block.h>
|
|
#include <DB/DataStreams/IBlockInputStream.h>
|
|
#include <DB/DataStreams/IBlockOutputStream.h>
|
|
#include <DB/DataStreams/IRowInputStream.h>
|
|
#include <DB/DataStreams/IRowOutputStream.h>
|
|
|
|
#include <atomic>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Копирует данные из InputStream в OutputStream
|
|
* (например, из БД в консоль и т. п.)
|
|
*/
|
|
void copyData(IBlockInputStream & from, IBlockOutputStream & to, std::atomic<bool> * is_cancelled = nullptr);
|
|
void copyData(IRowInputStream & from, IRowOutputStream & to);
|
|
|
|
}
|