Skip to content

Commit

Permalink
Add password to connection string for PG
Browse files Browse the repository at this point in the history
  • Loading branch information
alexole committed Oct 20, 2022
1 parent e48db8a commit 42b4234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiven/client/connection_info/pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def uri(self) -> str:
)

def connection_string(self) -> str:
return f"host='{self.host}' port='{self.port}' user={self.username} dbname='{self.dbname}'"
return f"host='{self.host}' port='{self.port}' user={self.username} dbname='{self.dbname}' password='{self.password}'"

def psql(self) -> Sequence[str]:
return ["psql", self.uri()]

0 comments on commit 42b4234

Please sign in to comment.