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

Function render_inline_reference

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

Source from the content-addressed store, hash-verified

16
17
18def render_inline_reference(model: Reference) -> str:
19 # settings are ignored for inline ref
20 if len(model.col2) > 1:
21 raise DBMLError('Cannot render DBML: composite ref cannot be inline')
22 table_name = get_full_name_for_dbml(model.col2[0].table)
23 return f'ref: {model.type} {table_name}."{model.col2[0].name}"'
24
25
26def render_col(col: List[Column]) -> str:

Callers 3

test_okMethod · 0.90
test_compositeMethod · 0.90
render_referenceFunction · 0.85

Calls 2

DBMLErrorClass · 0.90
get_full_name_for_dbmlFunction · 0.85

Tested by 2

test_okMethod · 0.72
test_compositeMethod · 0.72