mirror of
https://github.com/acaloiaro/frm
synced 2026-07-21 18:29:12 +00:00
feat: make sure search_path id used with psql
This commit is contained in:
parent
9b6341c974
commit
d8da2b787d
1 changed files with 3 additions and 2 deletions
|
|
@ -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)";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue