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

Function render_enum_item

pydbml/renderer/dbml/default/enum.py:20–25  ·  view source on GitHub ↗
(model: EnumItem)

Source from the content-addressed store, hash-verified

18
19@DefaultDBMLRenderer.renderer_for(EnumItem)
20def render_enum_item(model: EnumItem) -> str:
21 result = comment_to_dbml(model.comment) if model.comment else ''
22 result += f'"{model.name}"'
23 if model.note:
24 result += f' [{note_option_to_dbml(model.note)}]'
25 return result

Callers

nothing calls this directly

Calls 2

comment_to_dbmlFunction · 0.90
note_option_to_dbmlFunction · 0.90

Tested by

no test coverage detected