Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozzo1000/qdaten
https://github.com/mozzo1000/qdaten
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mozzo1000/qdaten
- Owner: Mozzo1000
- License: apache-2.0
- Created: 2024-02-24T18:15:16.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-15T17:36:02.000Z (7 months ago)
- Last Synced: 2024-04-15T18:47:09.960Z (7 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Q.Daten
Q.Daten (qdaten) is a command line application enabling you to run SQL queries against a CSV file. It starts by converting your CSV file into a SQLite database, you can then run SQL queries against the database in either interative TUI or non-interative mode. You can also open existing SQLite databases.
## Usage
**Open CSV file with the delimiter set to `;` in interative mode**
```bash
qdaten example.csv --delimiter=";"
```**Run query in non-interative mode**
```bash
qdaten example.csv -c="SELECT * FROM table LIMIT 10"
```**Open SQLite in interactive mode**
```bash
qdaten example.db --file-type=sqlite"
```### Interactive mode built-in commands
While inside the interactive terminal, there are a few built-in commands that you can run besides normal sql queries.| Command | Result |
| ------------- |:----------------------------:|
| exit | Exit interactive mode |
|.tables | Get a list of all tables |
|.save | Save to SQLite database file |## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.## License
Q.Daten is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for the full license text.