Skip to content

Using postgres variables in sqlx fixtures? #3450

Answered by CommanderStorm
kamiyaa asked this question in Q&A
Discussion options

You must be logged in to vote

Please see https://stackoverflow.com/questions/29593908/difference-between-set-set-and-pset-in-psql

TL;DR: \set is a psql meta-command => given that we are not psql, that won't work..

I think https://www.postgresql.org/docs/current/plpgsql-declarations.html might solve what you are trying to achieve, but have never needed that part

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kamiyaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants