| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
cargo install dfsql --features cliWithout Cargo features, the root Frame, MaterializedFrame, Error, and Result names use the dynamic backend, and the public executor is dfsql::backend::DynamicExecutor.
Enabling polars-backend selects the Polars executor instead:
[dependencies]
dfsql = { version = "0.16", features = ["polars-backend"] }With polars-backend the public executor is dfsql::backend::PolarsExecutor. The root Frame and MaterializedFrame types encapsulate the selected implementation, so Polars types are not part of dfsql's public API. The dynamic backend is still compiled and remains available explicitly through dfsql::backend::dynamic::{Engine,Frame}.
The cli feature enables the command-line application that uses Polars.
The file-ops feature reads and writes CSV (.csv), JSON arrays (.json), JSON Lines (.jsonl or .ndjson), HDV binary (.hdvb), and HDV text (.hdvt) files via dfsql::io. Actual format handling requires polars-backend; recognized formats panic without it. The cli feature includes both features.
HDV conversion uses the core hdv crate without its Polars feature. The Polars conversion lives in dfsql, so upgrading Polars does not require a Polars-aware HDV utility crate.
dfsql --input your.csv --output a-new.csv
# ...or
dfsql -i your.csv -o a-new.csvexitundoresetschemasave a-new.csvselect <expr>*select last_name first_namegroup (<col> | <var>)* agg <expr>*group first_name agg (count)filter <expr>filter first_name = "John"limit <int>limit 5reversesort ((asc | desc | ()) <col>)*sort icpsr_iduse <var>use other(left | right | inner | full) join <var> on <col> <col>?left join other on id IDcol : (<str> | <var>) -> <expr>select col first_nameexclude : <expr>* -> <expr>select exclude last_name first_nameselect a * bselect -aselect sum aalias : (<col> | <var>) <expr> -> <expr>select alias product a * b<conditional> : if <expr> then <expr> (if <expr> then <expr>)* otherwise <expr> -> <expr>select if class = 0 then "A" if class = 1 then "B" else nullcast : <type> <expr> -> <expr>select cast str id| Back | FazBrowse Home | New Git URL |