| Crates.io | inserter-x |
| lib.rs | inserter-x |
| version | 0.1.2 |
| created_at | 2025-06-08 10:53:25.702735+00 |
| updated_at | 2025-06-11 15:16:30.448492+00 |
| description | Copy or insert dataframes into databases (currently only Clickhouse) |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1704778 |
| size | 126,653 |
(Documentation WIP) A simple (and fast) polars dataframe to database insertion utility.
Currently only supports Clickhouse. Implementing other databases will be prioritized if there is a need and there is a client that supports fast insertion.
cargo run --release --example insert-bench -- -f <filepath> -h <host> -o <comma-separated-order_by-keys> -p <comma-separated-primary_keys> [--not-null <comma-separated-not_null_keys>]
# example
cargo run --release --example insert-bench -- -f ~/Downloads/train.csv -h http://default:password@localhost:8123/ -o GPA \
The ClickhouseInserter provides an interface to table creation and insertion queries.
Insertion is supported via the ArrowStream format. See tests/mod.rs for examples.
Name and concept inspired by connector-x.