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

Function create_components

pydbml/renderer/sql/default/table.py:53–63  ·  view source on GitHub ↗
(model: Table)

Source from the content-addressed store, hash-verified

51
52
53def create_components(model: Table) -> str:
54 components = [comment_to_sql(model.comment)] if model.comment else []
55 components.append(f'CREATE TABLE {get_full_name_for_sql(model)} (')
56
57 body = create_body(model)
58
59 components.append(body)
60 components.append(');')
61 components.extend('\n' + DefaultSQLRenderer.render(i) for i in model.indexes if not i.pk)
62
63 return '\n'.join(components)
64
65
66def render_column_notes(model: Table) -> str:

Callers 4

test_simpleMethod · 0.90
test_commentMethod · 0.90
test_indexesMethod · 0.90
render_tableFunction · 0.70

Calls 4

comment_to_sqlFunction · 0.90
get_full_name_for_sqlFunction · 0.90
create_bodyFunction · 0.85
renderMethod · 0.45

Tested by 3

test_simpleMethod · 0.72
test_commentMethod · 0.72
test_indexesMethod · 0.72