sql-export 0.0.1

一个用于导出SQL数据的Rust库
sql-export-0.0.1 is not a library.

SQLite

sql-export --db-type sqlite --conn "./data.db" -q "SELECT * FROM users" -o users.csv

MySQL

sql-export --db-type mysql --conn "mysql://root:pwd@localhost:3306/db_name" -q "SELECT * from test" -o test.xlsx --format xlsx --headers "id,hahaha" --batch-size 300

PostgreSQL

sql-export --db-type postgres --conn "postgres://user:pwd@localhost:5432/db_name" -q "SELECT * FROM orders WHERE created_at > '2026-01-01'" -o orders.xlsx