| Crates.io | polite-cli |
| lib.rs | polite-cli |
| version | 0.1.3 |
| created_at | 2025-08-25 21:01:01.888814+00 |
| updated_at | 2025-08-26 21:50:33.055314+00 |
| description | Command-line interface for rusqlite × Polars integration |
| homepage | https://github.com/lmmx/polite |
| repository | https://github.com/lmmx/polite |
| max_upload_size | |
| id | 1810146 |
| size | 86,551 |
A command-line interface for polite, the rusqlite × Polars bridge library.
cargo install polite-cli
The CLI takes:
polite "<SQL>" <DB_PATH>
and automatically decides:
SELECT → runs it and prints a Polars DataFrame.⚠️ Important:
ConnectorX (used internally for DataFrame reads) requires a file-backed database.
You must provide a database file path (e.g. mydb.sqlite). In-memory databases (:memory:) are not supported.
polite "CREATE TABLE t (id INTEGER, name TEXT)" mydb.sqlite
polite "INSERT INTO t VALUES (1, 'Alice')" mydb.sqlite
polite "SELECT * FROM t" mydb.sqlite
polite "CREATE TABLE users (id INTEGER, name TEXT)" example.sqlite
polite "INSERT INTO users VALUES (1, 'Bob')" example.sqlite
polite "SELECT * FROM users" example.sqlite
tempfile) are a good option if you don’t want the DB to persist.Licensed under the MIT License. See LICENSE for details.