MCPcopy Index your code
hub / github.com/Vanderhoof/PyDBML / render_enum_item

Function render_enum_item

pydbml/renderer/sql/default/enum.py:31–34  ·  view source on GitHub ↗
(model: EnumItem)

Source from the content-addressed store, hash-verified

29
30@DefaultSQLRenderer.renderer_for(EnumItem)
31def render_enum_item(model: EnumItem) -> str:
32 result = comment_to_sql(model.comment) if model.comment else ''
33 result += f"'{model.name}',"
34 return result

Callers 5

test_simpleMethod · 0.90
test_commentMethod · 0.90
test_noteMethod · 0.90
test_simpleMethod · 0.90
test_commentMethod · 0.90

Calls 1

comment_to_sqlFunction · 0.90

Tested by 5

test_simpleMethod · 0.72
test_commentMethod · 0.72
test_noteMethod · 0.72
test_simpleMethod · 0.72
test_commentMethod · 0.72