feat: make sure search_path id used with psql

This commit is contained in:
Adriano Caloiaro 2025-01-14 08:02:03 -07:00
parent 9b6341c974
commit d8da2b787d
No known key found for this signature in database
GPG key ID: C2BC56DE73CE3F75

View file

@ -63,7 +63,8 @@
#bash
''
go install github.com/dmarkham/enumer@latest
export DATABASE_URL_NON_PGX="postgres://postgres:postgres@localhost:${toString postgresPort}/frm?sslmode=disable&search_path=frm"
export PGOPTIONS=--search_path=frm
export DATABASE_URL_NON_PGX="postgres://postgres:postgres@localhost:${toString postgresPort}/frm?sslmode=disable"
export POSTGRES_URL="$DATABASE_URL_NON_PGX&pool_max_conns=100"
set +a
${executeEss}
@ -129,7 +130,7 @@
'';
};
devdb = {
exec = "${postgresql}/bin/psql $DATABASE_URL_NON_PGX frm";
exec = "${postgresql}/bin/psql $DATABASE_URL_NON_PGX frm $*";
description = "Connect to the development database (local)";
};