@@ -446,7 +446,7 @@ void Client::Impl::SendBlockData(const Block& block) {
446446 if (compression_ == CompressionState::Enable) {
447447 std::unique_ptr<OutputStream> compressed_output = std::make_unique<CompressedOutput>(output_.get (), options_.max_compression_chunk_size , options_.compression_method );
448448 BufferedOutput buffered (std::move (compressed_output), options_.max_compression_chunk_size );
449-
449+
450450 WriteBlock (block, buffered);
451451 } else {
452452 WriteBlock (block, *output_);
@@ -902,7 +902,7 @@ bool Client::Impl::ReadBlock(InputStream& input, Block* block) {
902902 if (!WireFormat::ReadString (input, &type)) {
903903 return false ;
904904 }
905-
905+
906906 if (server_info_.revision >= DBMS_MIN_REVISION_WITH_CUSTOM_SERIALIZATION ) {
907907 uint8_t custom_format_len;
908908 if (!WireFormat::ReadFixed (input, &custom_format_len)) {
@@ -911,7 +911,7 @@ bool Client::Impl::ReadBlock(InputStream& input, Block* block) {
911911 if (custom_format_len > 0 ) {
912912 throw UnimplementedError (std::string (" unsupported custom serialization" ));
913913 }
914- }
914+ }
915915
916916 if (ColumnRef col = CreateColumnByType (type, create_column_settings)) {
917917 if (num_rows && !col->Load (&input, num_rows)) {
@@ -1101,7 +1101,7 @@ void Client::Impl::SendQuery(const Query& query, bool finalize) {
11011101 }
11021102 WireFormat::WriteString (*output_, std::string ()); // empty string after last param
11031103 }
1104-
1104+
11051105 if (finalize) {
11061106 FinalizeQuery ();
11071107 }
@@ -1277,21 +1277,23 @@ void Client::Impl::RetryGuard(std::function<void()> func) {
12771277}
12781278
12791279Client::Client (const ClientOptions& opts)
1280- : options_(opts)
1281- , impl_(new Impl(opts))
1280+ : impl_(new Impl(opts))
12821281{
12831282}
12841283
12851284Client::Client (const ClientOptions& opts,
12861285 std::unique_ptr<SocketFactory> socket_factory)
1287- : options_(opts)
1288- , impl_(new Impl(opts, std::move(socket_factory)))
1286+ : impl_(new Impl(opts, std::move(socket_factory)))
12891287{
12901288}
12911289
12921290Client::~Client ()
12931291{ }
12941292
1293+
1294+ Client::Client (Client&&) noexcept = default ;
1295+ Client& Client::operator =(Client&&) noexcept = default ;
1296+
12951297void Client::Execute (const Query& query) {
12961298 impl_->ExecuteQuery (query);
12971299}
0 commit comments