6 releases

Uses new Rust 2024

new 0.18.1 Mar 27, 2025
0.18.0 Mar 25, 2025
0.17.2 Mar 11, 2025
0.17.0 Feb 27, 2025
0.16.0 Feb 21, 2025

#103 in #sqlite-database

Download history 127/week @ 2025-02-19 201/week @ 2025-02-26 169/week @ 2025-03-05 117/week @ 2025-03-12 84/week @ 2025-03-19

576 downloads per month
Used in 2 crates (via rsql_drivers)

Apache-2.0 OR MIT

120KB
2K SLoC

rsql_driver_tsv

ci Documentation Code Coverage Benchmarks Latest version License Semantic Versioning

rsql_driver_tsv is a data driver for Tab Separated Values (TSV) files.

Usage

Driver url format: tsv://<file>[?has_header=<true|false>][&quote=<char>][&skip_rows=<n>]

The driver is implemented using Polars SQL.

Driver Configuration

Parameter Description Default
has_header Whether the file has a header row. true
separator The character used to separate fields in the file. ,
quote The character used to quote fields in the file. "
eol The character used to separate lines in the file. \n
skip_rows The number of rows to skip before reading the data. 0
skip_rows_after_header The number of rows to skip after the header. 0
truncate_ragged_lines Whether to truncate lines that are longer than the schema. false
infer_schema_length The number of rows to use when inferring the schema. 100
ignore_errors Whether to ignore errors. If true, errors will be ignored. If false, errors will cause the query to fail. false

Safety

These crates use #![forbid(unsafe_code)] to ensure everything is implemented in 100% safe Rust.

License

Licensed under either of:

Dependencies

~68–98MB
~2M SLoC