Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osantana/mycsv
Export query results to local CSV file
https://github.com/osantana/mycsv
Last synced: 24 days ago
JSON representation
Export query results to local CSV file
- Host: GitHub
- URL: https://github.com/osantana/mycsv
- Owner: osantana
- License: bsd-3-clause
- Created: 2014-10-02T16:07:32.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-03T16:45:06.000Z (about 10 years ago)
- Last Synced: 2024-11-12T21:43:03.510Z (29 days ago)
- Language: Python
- Size: 141 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - mycsv - Export query results to local CSV file (Python)
README
mycsv
=====Export MySQL query results to local CSV file.
Usage::
$ mycsv [-u username] [-p password] [-h hostname] [-p port] [-s query.sql] [-O output.csv]
If you omit `password` option you will got a prompt asking for the password
(password will not be echoed)::$ mycsv -O report.csv < report.sql
Password []:You can send SQL script using `stdin` and dump CSV results to `stdout`::
$ mycsv -p Sekr3T < report.sql > report.csv