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

Function get_full_name_for_sql

pydbml/renderer/sql/default/utils.py:33–37  ·  view source on GitHub ↗
(model: Union[Table, Enum])

Source from the content-addressed store, hash-verified

31
32
33def get_full_name_for_sql(model: Union[Table, Enum]) -> str:
34 if model.schema == 'public':
35 return f'"{model.name}"'
36 else:
37 return f'"{model.schema}"."{model.name}"'

Callers 8

test_publicMethod · 0.90
test_schemaMethod · 0.90
generate_inline_sqlFunction · 0.90
generate_not_inline_sqlFunction · 0.90
render_enumFunction · 0.90
create_componentsFunction · 0.90
render_enumFunction · 0.90
render_columnFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_publicMethod · 0.72
test_schemaMethod · 0.72