Get the `conninfo` argument required for connection objects.
(config: PostgreSQLConfig)
| 55 | |
| 56 | |
| 57 | def _get_conninfo(config: PostgreSQLConfig) -> str: |
| 58 | """Get the `conninfo` argument required for connection objects.""" |
| 59 | return make_conninfo( |
| 60 | conninfo="", |
| 61 | user=config.user, |
| 62 | password=config.password, |
| 63 | host=config.host, |
| 64 | port=int(config.port), |
| 65 | dbname=config.database, |
| 66 | ) |
| 67 | |
| 68 | |
| 69 | def _get_conn_kwargs(config: PostgreSQLConfig) -> Dict[str, Any]: |
no outgoing calls
no test coverage detected