mirror of
https://github.com/dbcli/pgcli.git
synced 2024-10-04 09:17:08 +03:00
97a1fd6c16
* fix psycopg.sql.Identifier in \ev handling (#1384) * Allow defining a json file with preferred aliases At $WORK we have a lot of tables with names like `foo_noun_verb` or `foo_noun_related-noun_verb` and so while the default aliasing is very helpful for shortening unwieldy names we do end up with lots of aliases like `LEFT JOIN fnv on fnv2.id = fnv.fnv2_id` This change will allow defining a json file of preferred aliases ``` > cat ~/.config/pgcli/aliases.json { "foo_user": "user", "foo_user_group": "user_group" } ``` so the alias suggestion for `SELECT * FROM foo_user` will be `SELECT * FROM foo_user AS user` instead of the default `SELECT * FROM foo_user AS fu` * When cannot open or parse alias_map_file raise error Raise a (hopefully) helpful exception when the alias_map_file cannot be parsed or does not exist * Add tests for load_alias_map_file * Add tests for generate_alias * Update AUTHORS file * Remove comment. Discussed this on the PR with a project maintainer --------- Co-authored-by: Andy Schoenberger <akschoenberger@gmail.com> Co-authored-by: Rob B <rob@example.com> Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
136 lines
2.9 KiB
Plaintext
136 lines
2.9 KiB
Plaintext
Many thanks to the following contributors.
|
||
|
||
Project Lead:
|
||
-------------
|
||
* Irina Truong
|
||
|
||
Core Devs:
|
||
----------
|
||
* Amjith Ramanujam
|
||
* Darik Gamble
|
||
* Stuart Quin
|
||
* Joakim Koljonen
|
||
* Daniel Rocco
|
||
* Karl-Aksel Puulmann
|
||
* Dick Marinus
|
||
|
||
Contributors:
|
||
-------------
|
||
* Brett
|
||
* Étienne BERSAC (bersace)
|
||
* Daniel Schwarz
|
||
* inkn
|
||
* Jonathan Slenders
|
||
* xalley
|
||
* TamasNo1
|
||
* François Pietka
|
||
* Michael Kaminsky
|
||
* Alexander Kukushkin
|
||
* Ludovic Gasc (GMLudo)
|
||
* Marc Abramowitz
|
||
* Nick Hahner
|
||
* Jay Zeng
|
||
* Dimitar Roustchev
|
||
* Dhaivat Pandit
|
||
* Matheus Rosa
|
||
* Ali Kargın
|
||
* Nathan Jhaveri
|
||
* David Celis
|
||
* Sven-Hendrik Haase
|
||
* Çağatay Yüksel
|
||
* Tiago Ribeiro
|
||
* Vignesh Anand
|
||
* Charlie Arnold
|
||
* dwalmsley
|
||
* Artur Dryomov
|
||
* rrampage
|
||
* while0pass
|
||
* Eric Workman
|
||
* xa
|
||
* Hans Roman
|
||
* Guewen Baconnier
|
||
* Dionysis Grigoropoulos
|
||
* Jacob Magnusson
|
||
* Johannes Hoff
|
||
* vinotheassassin
|
||
* Jacek Wielemborek
|
||
* Fabien Meghazi
|
||
* Manuel Barkhau
|
||
* Sergii V
|
||
* Emanuele Gaifas
|
||
* Owen Stephens
|
||
* Russell Davies
|
||
* AlexTes
|
||
* Hraban Luyat
|
||
* Jackson Popkin
|
||
* Gustavo Castro
|
||
* Alexander Schmolck
|
||
* Donnell Muse
|
||
* Andrew Speed
|
||
* Dmitry B
|
||
* Isank
|
||
* Marcin Sztolcman
|
||
* Bojan Delić
|
||
* Chris Vaughn
|
||
* Frederic Aoustin
|
||
* Pierre Giraud
|
||
* Andrew Kuchling
|
||
* Dan Clark
|
||
* Catherine Devlin
|
||
* Jason Ribeiro
|
||
* Rishi Ramraj
|
||
* Matthieu Guilbert
|
||
* Alexandr Korsak
|
||
* Saif Hakim
|
||
* Artur Balabanov
|
||
* Kenny Do
|
||
* Max Rothman
|
||
* Daniel Egger
|
||
* Ignacio Campabadal
|
||
* Mikhail Elovskikh (wronglink)
|
||
* Marcin Cieślak (saper)
|
||
* easteregg (verfriemelt-dot-org)
|
||
* Scott Brenstuhl (808sAndBR)
|
||
* Nathan Verzemnieks
|
||
* raylu
|
||
* Zhaolong Zhu
|
||
* Zane C. Bowers-Hadley
|
||
* Telmo "Trooper" (telmotrooper)
|
||
* Alexander Zawadzki
|
||
* Pablo A. Bianchi (pabloab)
|
||
* Sebastian Janko (sebojanko)
|
||
* Pedro Ferrari (petobens)
|
||
* Martin Matejek (mmtj)
|
||
* Jonas Jelten
|
||
* BrownShibaDog
|
||
* George Thomas(thegeorgeous)
|
||
* Yoni Nakache(lazydba247)
|
||
* Gantsev Denis
|
||
* Stephano Paraskeva
|
||
* Panos Mavrogiorgos (pmav99)
|
||
* Igor Kim (igorkim)
|
||
* Anthony DeBarros (anthonydb)
|
||
* Seungyong Kwak (GUIEEN)
|
||
* Tom Caruso (tomplex)
|
||
* Jan Brun Rasmussen (janbrunrasmussen)
|
||
* Kevin Marsh (kevinmarsh)
|
||
* Eero Ruohola (ruohola)
|
||
* Miroslav Šedivý (eumiro)
|
||
* Eric R Young (ERYoung11)
|
||
* Paweł Sacawa (psacawa)
|
||
* Bruno Inec (sweenu)
|
||
* Daniele Varrazzo
|
||
* Daniel Kukula (dkuku)
|
||
* Kian-Meng Ang (kianmeng)
|
||
* Liu Zhao (astroshot)
|
||
* Rigo Neri (rigoneri)
|
||
* Anna Glasgall (annathyst)
|
||
* Andy Schoenberger (andyscho)
|
||
* Damien Baty (dbaty)
|
||
* blag
|
||
* Rob Berry (rob-b)
|
||
|
||
Creator:
|
||
--------
|
||
Amjith Ramanujam
|