1#include <DataStreams/NullBlockOutputStream.h>
2#include <Formats/FormatFactory.h>
3
4
5namespace DB
6{
7
8void registerOutputFormatNull(FormatFactory & factory)
9{
10 factory.registerOutputFormat("Null", [](
11 WriteBuffer &,
12 const Block & sample,
13 FormatFactory::WriteCallback,
14 const FormatSettings &)
15 {
16 return std::make_shared<NullBlockOutputStream>(sample);
17 });
18}
19
20}
21