MCPcopy Create free account
hub / github.com/feast-dev/feast / _get_conninfo

Function _get_conninfo

sdk/python/feast/infra/utils/postgres/connection_utils.py:57–66  ·  view source on GitHub ↗

Get the `conninfo` argument required for connection objects.

(config: PostgreSQLConfig)

Source from the content-addressed store, hash-verified

55
56
57def _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
69def _get_conn_kwargs(config: PostgreSQLConfig) -> Dict[str, Any]:

Callers 4

_get_connFunction · 0.85
_get_conn_asyncFunction · 0.85
_get_connection_poolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected