MCPcopy Index your code
hub / github.com/feast-dev/feast / _list_project_metadata

Method _list_project_metadata

sdk/python/feast/infra/registry/sql.py:1009–1026  ·  view source on GitHub ↗
(self, project: str)

Source from the content-addressed store, hash-verified

1007 )
1008
1009 def _list_project_metadata(self, project: str) -> List[ProjectMetadata]:
1010 with self.read_engine.begin() as conn:
1011 stmt = select(feast_metadata).where(
1012 feast_metadata.c.project_id == project,
1013 )
1014 rows = conn.execute(stmt).all()
1015 if rows:
1016 project_metadata = ProjectMetadata(project_name=project)
1017 for row in rows:
1018 if (
1019 row._mapping["metadata_key"]
1020 == FeastMetadataKeys.PROJECT_UUID.value
1021 ):
1022 project_metadata.project_uuid = row._mapping["metadata_value"]
1023 break
1024 # TODO(adchia): Add other project metadata in a structured way
1025 return [project_metadata]
1026 return []
1027
1028 def apply_saved_dataset(
1029 self,

Callers

nothing calls this directly

Calls 2

ProjectMetadataClass · 0.90
executeMethod · 0.45

Tested by

no test coverage detected