trailbase/trailbase-sqlite/Cargo.toml
Sebastian Jeltsch e0ad4a898c Extend trailbase-sqlites execution model to allow for parallel reads. This reduces the latency long-tail for slow reads.
Note that this complicates the APIs, since it pushes the responsibility
of declaring a query a read or write to the user to then be scheduled
appropriately.

Add `.(read_|)query_row_f` APIs similar to rusqlites
`conn.query_row` accepting a `|row| -> Result<T>` to reduce the use of
`Row` and `Rows`.

Make benchmarks more isolated by not sharing a DB across runs
accumulating writes.
2025-04-15 12:15:40 +02:00

36 lines
1 KiB
TOML

[package]
name = "trailbase-sqlite"
version = "0.2.0"
edition = "2021"
license = "OSL-3.0"
description = "Async SQLite connection for TrailBase"
homepage = "https://trailbase.io"
repository = "https://github.com/trailbaseio/trailbase"
readme = "../README.md"
autobenches = false
[[bench]]
name = "benchmark"
path = "benches/benchmark.rs"
harness = false
[dependencies]
crossbeam-channel = "0.5.13"
log = { version = "^0.4.21", default-features = false }
parking_lot = { version = "0.12.3", default-features = false }
rusqlite = { workspace = true }
serde = { version = "^1.0.203", features = ["derive"] }
serde_json = "1.0.122"
serde_rusqlite = "0.38.0"
thiserror = "2.0.1"
tokio = { workspace = true }
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
env_logger = { workspace = true }
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
log = "0.4.27"
rand = "0.9.0"
tempfile = "3.19.1"
trailbase-extension = { workspace = true }
uuid = { workspace = true }