https://slingdata.io logo
I have a situation that I create an
# sling-help
i
I have a situation that I create an environment variable for Postgres and for ducklake . I am trying to use only environment variable connections without register them with set. when i test the ducklake it works fine but with postgres it doesn't (unless i use the url option) $ export pagilas='{"type": "postgresql", "user": "neondb_owner", "password": "xxxxxxxxxxxxxxx", " host": "ep-orange-lake-ab0kxvtv.eu-west-2.aws.neon.tech", "database": "pagila", "sslmode": "requir e"}' if i do it like this: it does works export pagilas='postgresql://myuser:mypass@host.ip:5432/mydatabase?sslmode=require' ----------------------------------------------- Itamar@itamar-yoga-25 MINGW64 /c/work/projects_v1/askl (dev) $ sling conns test pagilas fatal: ~ could not test pagilas Invalid Connection name: pagilas. Make sure it is created Itamar@itamar-yoga-25 MINGW64 /c/work/projects_v1/askl (dev) $ echo $pagilas {"type": "postgresql", "user": "neondb_owner", "password": "xxxxxxxxx", "host": "ep-orange-lake-ab0kxvtv.eu-west-2.aws.neon.tech", "database": "pagila", "sslmode": "require"}
f
hey @itamars_78208 can you try
type: postgres
instead of
type: postgresql
? I fixed the docs
i
Hi, it worked, i needed also to keep it one liner - thanks