https://github.com/weijun-h/sql2all
Retrieve the data from the database, then asynchronically store it in all formats.
https://github.com/weijun-h/sql2all
database rust
Last synced: 5 months ago
JSON representation
Retrieve the data from the database, then asynchronically store it in all formats.
- Host: GitHub
- URL: https://github.com/weijun-h/sql2all
- Owner: Weijun-H
- Created: 2024-06-08T04:05:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-14T08:13:42.000Z (about 2 years ago)
- Last Synced: 2025-06-01T14:10:22.685Z (about 1 year ago)
- Topics: database, rust
- Language: Rust
- Homepage:
- Size: 1.72 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL2ALL
SQL2ALL is a simple tool that allows you to asynchronically store your SQL queries in any format you like and then run them against any database you like. It is designed to be simple to use and easy to extend.
## Roadmap
Support for the following databases is included:
- [x] MySQL/MariaDB ([mysql_async](https://crates.io/crates/mysql_async))
- [x] PostgreSQL ([tokio-postgres](https://crates.io/crates/tokio-postgres))
- [x] SQLite ([rusqlite](https://crates.io/crates/rusqlite))
- [ ] Graph Database (Neo4j/KuzuDB)
Support for the following output formats is included:
- [x] CSV
- [x] JSON
- [x] Parquet
- [ ] ORC
- [ ] Avro
- [ ] Lance
## Usage
```shell
sql2all -u -o -q
sql2all -u "mysql://root@localhost:3306/test" -o "test.parquet" -q "select * from payment"
sql2all -u "postgresql://root@localhost:5432/test" -o "test.csv" -q "select * from payment"
sql2all -u "sqlite:///test.db" -o "test.json" -q "select * from payment"
```