#polars #dataframe #sql #plan

polars-sql

SQL transpiler for Polars. Converts SQL to Polars logical plans

49 releases (21 breaking)

Uses new Rust 2024

new 0.47.1 May 5, 2025
0.46.0 Jan 26, 2025
0.45.1 Dec 9, 2024
0.44.2 Nov 1, 2024
0.2.1 Oct 28, 2022

#121 in Database implementations

Download history 22662/week @ 2025-01-14 23078/week @ 2025-01-21 22887/week @ 2025-01-28 29726/week @ 2025-02-04 121036/week @ 2025-02-11 132467/week @ 2025-02-18 145118/week @ 2025-02-25 148520/week @ 2025-03-04 139700/week @ 2025-03-11 120092/week @ 2025-03-18 123050/week @ 2025-03-25 101110/week @ 2025-04-01 95843/week @ 2025-04-08 78305/week @ 2025-04-15 83680/week @ 2025-04-22 76486/week @ 2025-04-29

347,139 downloads per month
Used in 167 crates (17 directly)

MIT license

6MB
142K SLoC

Polars SQL This crate provides a SQL interface for Polars DataFrames


polars-sql

polars-sql is a sub-crate of the Polars library, offering a SQL transpiler. It allows for SQL query conversion to Polars logical plans.

Usage

To use polars-sql, add it as a dependency to your Rust project's Cargo.toml file:

[dependencies]
polars-sql = "0.30.0"

You can then import the crate in your Rust code using:

use polars_sql::*;

Important Note: This crate is not intended for external usage. Please refer to the main Polars crate for intended usage.

Dependencies

~32–65MB
~1M SLoC