Import SQLAlchemy models for diagrams
mainTo generate a graph, you must provide the path to your SQLAlchemy Base class (using the module.path:Base syntax) and ensure all models are imported into the registry. Use the --import-module flag for each module containing models.
To perform a wildcard import (equivalent to from module import *), use the :* suffix. Note: Wrap the module name in quotes to prevent shell expansion.
# Specific module imports
paracelsus graph example_app.models.base:Base \
--import-module "example_app.models.users" \
--import-module "example_app.models.posts"
# Wildcard import
paracelsus graph example_app.models.base:Base --import-module "example_app.models:*"