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

Function validate_for_sql

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

Source from the content-addressed store, hash-verified

13
14
15def validate_for_sql(model: Reference):
16 for col in chain(model.col1, model.col2):
17 if col.table is None:
18 raise TableNotFoundError(f'Table on {col} is not set')
19
20
21def generate_inline_sql(model: Reference, source_col: List[Column], ref_col: List[Column]) -> str:

Callers 4

test_okMethod · 0.90
test_faultyMethod · 0.90
render_referenceFunction · 0.85

Calls 1

TableNotFoundErrorClass · 0.90

Tested by 3

test_okMethod · 0.72
test_faultyMethod · 0.72