-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i use PostgreSQL through Unix socket? #2614
Comments
@MikalaiR |
@Kononnable I have resolved this issue using temporary 'crutch'.
It don't work in right way because TypeORM parses |
I'd also like the know if this is currently supported / the status of this issue. Currently I'm using password auth restricted by host and pgsql is protected by a frewall, but it'd much more convenient if I had a unix user per db/app and could use pg_ident through socket instead. |
The issue is still present in the latest release. Why TypeORM couldn't pass the url to the driver directly? |
For anyone having the same issue, here are the variables I've set on my Cloud Run service: It does connect via socket, here is how the variable looks like: More info here about service account permissions & APIs to enable here: https://cloud.google.com/sql/docs/postgres/connect-run |
This is good to go in the next release. |
Since I had a lot of research to do to find this out, I'll just let you know, that you can also use the following syntax here:
for more details see: |
Issue type:
[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
I tried something like:
but it doesn't working.
The text was updated successfully, but these errors were encountered: