MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / get_refs

Method get_refs

pydbml/_classes/column.py:68–74  ·  view source on GitHub ↗

get all references related to this column (where this col is col1 in)

(self)

Source from the content-addressed store, hash-verified

66 val.parent = self
67
68 def get_refs(self) -> List['Reference']:
69 '''
70 get all references related to this column (where this col is col1 in)
71 '''
72 if not self.table:
73 raise TableNotFoundError('Table for the column is not set')
74 return [ref for ref in self.table.get_refs() if self in ref.col1]
75
76 @property
77 def database(self):

Callers 1

test_get_refsMethod · 0.95

Calls 1

TableNotFoundErrorClass · 0.90

Tested by 1

test_get_refsMethod · 0.76