Repository navigation
chdb-rust v2.1.0 adds zero-copy access to query results, buffers insert-stream writes, and moves to chDB core v26.11.0-rc.2.
Highlights
- Added
QueryResult::data_str(), which borrows a result as&strwithout copying it, andError::InvalidUtf8for results that are not text (#59). InsertStreamgathers writes made throughio::Writeinto a 64 KiB buffer, so awriteln!per row no longer costs an FFI call per row;with_write_buffer(bytes)changes the size and0turns buffering off (#58).- Query parameters are encoded without copying every value (#62).
- Added
Error::EngineCallFailed { call }, returned instead ofError::Unknownwhenruntime::shutdownorInsertStream::appendfails without a reason from the engine (#57). - The
runtime::shutdowndocs now say to drop every connection before the process exits and to callshutdownafter the last one: exiting with a connection open while MergeTree merges run can crash the process (#65).
Behaviour changes
- Because writes are buffered, an error from a bad row can surface on a later write, on
flush()or onfinish()rather than on the write that caused it (#58).
This release is built against chDB core v26.11.0-rc.2, a release candidate.