polite-cli-0.1.3 is not a library.
polite-cli
A command-line interface for polite, the rusqlite × Polars bridge library.
Installation
Usage
The CLI takes:
and automatically decides:
- If the SQL starts with
SELECT→ runs it and prints a PolarsDataFrame. - Otherwise → executes the statement and prints rows affected.
⚠️ 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.
Create a table
Insert a row
Query into a DataFrame
Example
Notes
- File-backed SQLite databases only. ConnectorX cannot read from in-memory databases.
- Temporary files (
tempfile) are a good option if you don’t want the DB to persist.
Documentation
- Library crate: polite
- Workspace guide: DEVELOPMENT.md
License
Licensed under the MIT License. See LICENSE for details.