psql get connection string code example Example: postgres connection string postgres://YourUserName:YourPassword@YourHostname:5432/YourDatabaseName