How Can I pass variables for psql using goose? e.g. -v v1=12 -v v2="'Hello World'" #489
Replies: 1 comment 1 reply
-
Goose supports running arbitrary sql with the https://pressly.github.io/goose/blog/2021/no-version-migrations/ But the tool does not, currently, support variable expansion/substitution. There's an open issue and there's some chat there on how we may implement it.. #347 Curious, could you not solve this with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have my
postgres.sql
file, in which I have some variables that need to pass for every environment.I need the option to pass those variables from goose to those SQL scripts
Referring to this https://stackoverflow.com/questions/7389416/postgresql-how-to-pass-parameters-from-command-line
Beta Was this translation helpful? Give feedback.
All reactions