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

Method render

pydbml/renderer/base.py:20–26  ·  view source on GitHub ↗

Render the model to a string. If the model is not supported, fall back to `self._unsupported_renderer` that by default returns an empty string.

(cls, model)

Source from the content-addressed store, hash-verified

18
19 @classmethod
20 def render(cls, model) -> str:
21 """
22 Render the model to a string. If the model is not supported, fall back to
23 `self._unsupported_renderer` that by default returns an empty string.
24 """
25
26 return cls.model_renderers.get(type(model), cls._unsupported_renderer)(model) # type: ignore
27
28 @classmethod
29 def renderer_for(cls, model_cls: Type) -> Callable:

Callers 6

test_renderMethod · 0.45
test_renderFunction · 0.45
sqlMethod · 0.45
dbmlMethod · 0.45

Calls 1

getMethod · 0.80

Tested by 4

test_renderMethod · 0.36
test_renderFunction · 0.36