typeorm-uml icon indicating copy to clipboard operation
typeorm-uml copied to clipboard

Improve PlantUML statements when using `--with-table-names-only` option

Open micalevisk opened this issue 4 years ago • 0 comments

Hi! When we use the --with-table-names-only flag, since entities names won't be displayed, I think it would be nice to remove them from the output puml diagram's code

Current behavior

Now ... -f puml --with-table-names-only produces lines like table( UserEntity, User ) as User

Expected

To generate lines like table( User ) which will leads to the same image but with less bytes.

Note that this implies changing this following func as well

https://github.com/eugene-manuilov/typeorm-uml/blob/ead09e70ca2cdcb38248f130c9243dcbd805178f/src/builder/styles.class.ts#L38

Do you think this is feasible?

micalevisk avatar Mar 21 '21 21:03 micalevisk