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

Function validate_for_dbml

pydbml/renderer/dbml/default/reference.py:12–15  ·  view source on GitHub ↗
(model: Reference)

Source from the content-addressed store, hash-verified

10
11
12def validate_for_dbml(model: Reference):
13 for col in chain(model.col1, model.col2):
14 if col.table is None:
15 raise TableNotFoundError(f'Table on {col} is not set')
16
17
18def render_inline_reference(model: Reference) -> str:

Callers 3

test_okMethod · 0.90
test_no_tableMethod · 0.90
render_referenceFunction · 0.85

Calls 1

TableNotFoundErrorClass · 0.90

Tested by 2

test_okMethod · 0.72
test_no_tableMethod · 0.72