[package]
edition = "2024"
name = "postgres_to_polars"
version = "1.0.2"
authors = ["Christophe Sonneville <christophe@swappy.fr>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stream PostgreSQL query results directly into Polars DataFrames via sqlx."
readme = "README.md"
keywords = [
"polars",
"postgresql",
"sqlx",
"dataframe",
]
categories = [
"database",
"science",
]
license = "Apache-2.0"
repository = "https://github.com/krikristoophe/postgres_to_polars"
resolver = "2"
[lib]
name = "postgres_to_polars"
path = "src/lib.rs"
[[test]]
name = "load"
path = "tests/load.rs"
[[test]]
name = "query"
path = "tests/query.rs"
[[test]]
name = "types"
path = "tests/types.rs"
[[bench]]
name = "query_bench"
path = "benches/query_bench.rs"
harness = false
[dependencies.chrono]
version = "0.4"
[dependencies.futures]
version = "0.3"
[dependencies.polars]
version = "0.53.0"
features = [
"dtype-date",
"dtype-datetime",
"dtype-time",
]
default-features = false
[dependencies.postgres_to_polars_derive]
version = "1.0.2"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"postgres",
"chrono",
]
[dependencies.thiserror]
version = "2"
[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]
[dev-dependencies.dotenvy]
version = "0.15"
[dev-dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"postgres",
"migrate",
"chrono",
]
[dev-dependencies.tokio]
version = "1"
features = ["full"]