An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          


Image

# 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.


Image

## 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"
```