(model: Reference)
| 43 | |
| 44 | |
| 45 | def render_not_inline_reference(model: Reference) -> str: |
| 46 | result = comment_to_dbml(model.comment) if model.comment else '' |
| 47 | result += 'Ref' |
| 48 | if model.name: |
| 49 | result += f' {model.name}' |
| 50 | |
| 51 | result += ( |
| 52 | ' {\n ' # type: ignore |
| 53 | f'{get_full_name_for_dbml(model.table1)}.{render_col(model.col1)} ' |
| 54 | f'{model.type} ' |
| 55 | f'{get_full_name_for_dbml(model.table2)}.{render_col(model.col2)}' |
| 56 | f'{render_options(model)}' |
| 57 | '\n}' |
| 58 | ) |
| 59 | return result |
| 60 | |
| 61 | |
| 62 | @DefaultDBMLRenderer.renderer_for(Reference) |