ClickHouse-Encoder
view release on metacpan or search on metacpan
t/helpers.t view on Meta::CPAN
host => '127.0.0.1', port => 18123,
table => 'good_name',
columns => [['x','Int32']],
); 1
} ? "" : $@;
like($err, qr/needs rows/, 'rows is required');
}
# for_query: with via=>'client', we can't fake clickhouse-client; just
# verify the dispatch builds the same describe call as for_table for
# its own SQL fragment. We exercise the private _for_describe helper
# only indirectly. If clickhouse-client isn't installed, this branch
# dies before opening the pipe -- catch and skip.
SKIP: {
# Cheap smoke: confirm for_query is dispatchable and routes through
# the same plumbing. Don't require a running server.
can_ok('ClickHouse::Encoder', 'for_query');
can_ok('ClickHouse::Encoder', 'insert_http');
}
# insert_http with a live HTTP listener (only if 127.0.0.1:18123 is up)
( run in 3.500 seconds using v1.01-cache-2.11-cpan-364913b4093 )