2011-11-06 06:22:52 +00:00
|
|
|
|
#pragma once
|
2010-03-04 19:20:28 +00:00
|
|
|
|
|
2010-05-24 17:55:57 +00:00
|
|
|
|
#include <DB/Core/Block.h>
|
2010-03-04 19:20:28 +00:00
|
|
|
|
#include <DB/DataStreams/IBlockInputStream.h>
|
|
|
|
|
#include <DB/DataStreams/IBlockOutputStream.h>
|
|
|
|
|
#include <DB/DataStreams/IRowInputStream.h>
|
|
|
|
|
#include <DB/DataStreams/IRowOutputStream.h>
|
|
|
|
|
|
2015-03-20 16:20:47 +00:00
|
|
|
|
#include <atomic>
|
2010-03-04 19:20:28 +00:00
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/** Копирует данные из InputStream в OutputStream
|
|
|
|
|
* (например, из БД в консоль и т. п.)
|
|
|
|
|
*/
|
2015-03-20 16:20:47 +00:00
|
|
|
|
void copyData(IBlockInputStream & from, IBlockOutputStream & to, std::atomic<bool> * is_cancelled = nullptr);
|
2010-03-04 19:20:28 +00:00
|
|
|
|
void copyData(IRowInputStream & from, IRowOutputStream & to);
|
|
|
|
|
|
|
|
|
|
}
|