This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function DNI_CL({ run, string }){ | |
| if(run !== '' && (typeof run === "string" || typeof run === "number")){ | |
| function format(n){ | |
| if (typeof n === 'string') { | |
| // Remove '.' if exist | |
| n = (n.includes('.')) ? n.split('.').join('') : n; | |
| // Remove '-' if exist | |
| n = (n.includes('-')) ? n.split('-').join('') : n; |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the\commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)