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

Function render_options

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

Source from the content-addressed store, hash-verified

32
33
34def render_options(model: Reference) -> str:
35 options = []
36 if model.on_update:
37 options.append(f'update: {model.on_update}')
38 if model.on_delete:
39 options.append(f'delete: {model.on_delete}')
40 if options:
41 return f' [{", ".join(options)}]'
42 return ''
43
44
45def render_not_inline_reference(model: Reference) -> str:

Callers 5

test_on_updateMethod · 0.90
test_on_deleteMethod · 0.90
test_bothMethod · 0.90
test_no_optionsMethod · 0.90

Calls

no outgoing calls

Tested by 4

test_on_updateMethod · 0.72
test_on_deleteMethod · 0.72
test_bothMethod · 0.72
test_no_optionsMethod · 0.72