sqlalchemy_data_model_visualizer icon indicating copy to clipboard operation
sqlalchemy_data_model_visualizer copied to clipboard

new feautre / import models from metadata

Open copdips opened this issue 1 year ago • 3 comments

Hello,

It seems that we should imports all the models one by one in advance, is there any way that we can use metadata to get this done automatically like alembic ? metadata.tables is a FacadeDict with all the models in the dict values.

copdips avatar Aug 24 '24 12:08 copdips

Not sure. It’s already nearly instantaneous for me so not sure what the advantage would be.

Dicklesworthstone avatar Aug 24 '24 12:08 Dicklesworthstone

Current implementation forces to list the tables one by one. If you miss one, you will also miss it in the erd schema. And if with metadata, we only need to import this single metadata once, we do not need to maintain the table list anymore.

copdips avatar Aug 24 '24 13:08 copdips

Seconding this. Using the metadata allows for integration in automated workflows, without also having to manually add the model to the visualization list

fkarg avatar Jan 25 '25 11:01 fkarg