pgcli/mycli - command line wrappers for postgresql and mysql Source
Markdown source
1---2title: 'pgcli/mycli - command line wrappers for postgresql and mysql'3date: '2018-09-19'4published_at: '2018-09-19T18:45:00.002+10:00'5tags: ['mysql', 'open source', 'postresql', 'python']6author: 'Gavin Jackson'7excerpt: 'pip install pgcli mycli These are replacements for the standard mysql and postgresql command line clients. This is appealing because it provides a (somewhat) consistent end user experience to these da...'8updated_at: '2018-09-19T18:45:46.672+10:00'9legacy_url: 'http://www.gavinj.net/2018/09/pgclimycli-command-line-wrappers-for.html'10---1112## pip install pgcli mycli1314These are replacements for the standard mysql and postgresql command line clients. This is appealing because it provides a (somewhat) consistent end user experience to these databases and provides some seriously handy features; including:15161. Command line completion17182. History (with search)19203. Integrates with your favourite command line editor \e21224. Named queries (favorites) - these can be configured to take parameters! I have lots of little SQL snippets I keep in a text file, this makes it much easier!23245. Allows you to easily define the output format using the \T special command (write to file by using the \o special command).25266. Use the "watch" command to easily set up a query that auto refreshes2728Output formats:29double sql-update-1 orgtbl grid latex rst csv latex_booktabs mediawiki textile plain pipe html ascii fancy_grid psql sql-insert sql-update-2 vertical tsv jira simple moinmoin sql-update github3031Written in python too!!3233[https://www.mycli.net/](https://www.mycli.net/)34[https://www.pgcli.com/](https://www.pgcli.com/)3536Great pycon presentation by the developer (Amjith Ramanujam): [https://www.youtube.com/watch?v=hJhZhLg3obk&feature;=player_embedded](https://www.youtube.com/watch?v=hJhZhLg3obk&feature=player_embedded)373839