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

Method _validate

pydbml/_classes/reference.py:113–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 return f"Reference([{col1}] {self.type} [{col2}]"
112
113 def _validate(self):
114 table1 = self.col1[0].table
115 if any(c.table != table1 for c in self.col1):
116 raise DBMLError('Columns in col1 are from different tables')
117
118 table2 = self.col2[0].table
119 if any(c.table != table2 for c in self.col2):
120 raise DBMLError('Columns in col2 are from different tables')

Callers 3

table1Method · 0.95
table2Method · 0.95

Calls 1

DBMLErrorClass · 0.90

Tested by 1