ClickHouse/dbms/include/DB/DataStreams/copyData.h
2015-01-07 21:07:00 +03:00

20 lines
547 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>
namespace DB
{
/** Копирует данные из InputStream в OutputStream
* (например, из БД в консоль и т. п.)
*/
void copyData(IBlockInputStream & from, IBlockOutputStream & to, volatile bool * is_cancelled = nullptr);
void copyData(IRowInputStream & from, IRowOutputStream & to);
}