Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard crows foot notation #9

Open
psychemedia opened this issue Feb 21, 2018 · 2 comments
Open

Standard crows foot notation #9

psychemedia opened this issue Feb 21, 2018 · 2 comments

Comments

@psychemedia
Copy link

psychemedia commented Feb 21, 2018

It would be useful if the display used the standard crows foot notation, eg as per https://www.codeproject.com/Articles/878359/Data-modelling-using-ERD-with-Crow-Foot-Notation .

 def graphviz_crow_arrowheads( cardinality):
        if cardinality=='*': # *: {0..N}
            head='crowodot'
        elif cardinality=='?': # ?: {0,1}
            head='teeodot'
        elif cardinality=='+': # +: {1,N}
            head='crowtee'
        elif cardinality=='1': # 1: {1}
            head='teetee'
        return head
@webley-eli
Copy link

webley-eli commented Apr 19, 2023

It's odd since the example here https://github.com/sqlalchemy/sqlalchemy/wiki/SchemaDisplay shows crows feet
Calling
graph = create_schema_graph(
metadata=metadata_obj, rankdir='LR',
relation_options={'arrowType': 'crow', 'arrowhead': 'crow', 'arrowtail': 'crow'},
show_column_keys=True,
)
also results in TypeError: pydot.Edge() got multiple values for keyword argument 'arrowhead' and TypeError: pydot.Edge() got multiple values for keyword argument 'arrowtail'
'arrowType': 'crow' also doesn't update the arrows

Maybe the logic here
https://github.com/fschulze/sqlalchemy_schemadisplay/blob/master/sqlalchemy_schemadisplay.py#L262
needs additional consideration?

@Zlopez
Copy link
Collaborator

Zlopez commented Feb 19, 2024

Is this still issue with 2.0 released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants