postgres://...
ホストがローカルホストではない場合のPostgreSQL 接続文字列 (URL) の形式は何ですか?
ベストアンサー1
それぞれの言語にLibpqバインディングを使用する場合は、ドキュメンテーションURI は次のように形成されます。
postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
以下は同じ文書からの例です
postgresql://
postgresql://localhost
postgresql://localhost:5432
postgresql://localhost/mydb
postgresql://user@localhost
postgresql://user:secret@localhost
postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp
postgresql://localhost/mydb?user=other&password=secret