ToeBee/ChangesetMD

Lack of option to specify port

Closed this issue · 4 comments

Defaults to port 5432.

Have script default to port 5432 if a port is not specified at commandline.

Kristen

Can this be done with the PGPORT env var?

Hi.

Yeah, the psycopg module's psycopg2 class has a connect method keyword to specify the port number. You can update the logic to parse the port number from command line if its specified.

done. wanna check it out?

kristenkam@64cf779

Finally got around to merging this with some additional tweaks from @pnorman.