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

Function quote_string

pydbml/renderer/dbml/default/utils.py:16–20  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

14
15
16def quote_string(text: str) -> str:
17 if '\n' in text:
18 return f"'''\n{prepare_text_for_dbml(text)}'''"
19 else:
20 return f"'{prepare_text_for_dbml(text)}'"
21
22
23def note_option_to_dbml(note: 'Note') -> str:

Callers 4

render_sticky_noteFunction · 0.90
render_tableFunction · 0.90
render_optionsFunction · 0.90
render_noteFunction · 0.90

Calls 1

prepare_text_for_dbmlFunction · 0.85

Tested by

no test coverage detected