Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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)
31
def
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_simple
Method · 0.90
test_comment
Method · 0.90
test_note
Method · 0.90
test_simple
Method · 0.90
test_comment
Method · 0.90
Calls
1
comment_to_sql
Function · 0.90
Tested by
5
test_simple
Method · 0.72
test_comment
Method · 0.72
test_note
Method · 0.72
test_simple
Method · 0.72
test_comment
Method · 0.72