MCPcopy Create free account
hub / github.com/apache/devlake / primary_keys

Method primary_keys

backend/python/pydevlake/pydevlake/model.py:153–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 return domain_id(type(self), self.connection_id, *self.primary_keys())
152
153 def primary_keys(self) -> Iterable[object]:
154 model_type = type(self)
155 mapper = inspect(model_type)
156 for primary_key_column in mapper.primary_key:
157 prop = mapper.get_property_by_column(primary_key_column)
158 if prop.key == 'connection_id':
159 continue
160 yield getattr(self, prop.key)
161
162
163class DomainModel(NoPKModel):

Callers 1

domain_idMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected