services-flake icon indicating copy to clipboard operation
services-flake copied to clipboard

Postgres: unify psql command execution in setup-script

Open shivaraj-bh opened this issue 1 year ago • 2 comments

@adrian-gierakowski I think it would be nicer if there is one function that executes psql commands so that we don't accidentally add a psql command in the future that doesn't use psqlUserArg. That can be done in a different PR, merging this.

Originally posted by @shivaraj-bh in https://github.com/juspay/services-flake/pull/106#issuecomment-1957537267

shivaraj-bh avatar Feb 21 '24 18:02 shivaraj-bh

Sure, should it be a psql wrapper, or simply a bash snippet we can interpolate into the script?

adrian-gierakowski avatar Feb 21 '24 19:02 adrian-gierakowski

or simply a bash snippet we can interpolate into the script

This sounds good!

shivaraj-bh avatar Feb 21 '24 20:02 shivaraj-bh