CLI API
sql2excel.cli
Script to execute SQL scripts and export the results to an Excel file.
Usage:
sql2excel <sql_file> --dialect <dialect> --host <host> --port <port> --user <user> --password <pass> --dbname <db> --output <out_file>
Example
sql2excel query.sql
--dialect postgresql
--host localhost
--port 5432
--user username
--password secret
--dbname my_db
--output report.xlsx