clickhouse.rs
clickhouse.rs copied to clipboard
Expose the binary format implementation
Hi, I've noticed that this library has a serde-compatible implementation of the Clickhouse binary format, and I would like to use it in my project. However, it is currently in a private module. Would it be possible to make it public?
Hello, it's slightly problematic because I don't want to make it server-compatible. Also, it uses specific signatures
pub(crate) fn deserialize_from<'de, T: Deserialize<'de>>(
input: impl Buf,
temp_buf: &'de mut [u8],
) -> Result<T> {
to support borrowed data.
Why do you need this ser/de code?
I have a UDF implement in Rust. It's currently communicating with Clickhouse using the JSONEachRow format, but I would like to use the binary format for better efficiency.