Skip to content

Conversation

@gabrielwol
Copy link
Contributor

@gabrielwol gabrielwol commented Sep 4, 2025

To do:

  • migrate to public schema
  • comments
  • add foreign keys?
  • different symbols for views/mat views/tables/foreign key relations
  • Option to traverse up or down from starting object.

Examples:

SELECT gwolofs.mermaid_dependency_diagram('miovision_api', 'intersections')
SELECT gwolofs.mermaid_dependency_diagram_simple('miovision_api', 'intersections')

@gabrielwol gabrielwol self-assigned this Sep 4, 2025
@gabrielwol gabrielwol linked an issue Sep 4, 2025 that may be closed by this pull request
@gabrielwol
Copy link
Contributor Author

flowchart TD
    subgraph aadt
        aadt.network_connections[[aadt.network_connections]]
        aadt.palmerston_corridors[[aadt.palmerston_corridors]]
        aadt.estimated_aadt_from_counts_latest[[aadt.estimated_aadt_from_counts_latest]]
        aadt.estimated_aadt_from_counts[[aadt.estimated_aadt_from_counts]]
        aadt.caf_factors[[aadt.caf_factors]]
        aadt.caf_factors_presentation[[aadt.caf_factors_presentation]]
        aadt.estimated_aadt_from_incomplete_miovision[[aadt.estimated_aadt_from_incomplete_miovision]]
        aadt.caf_aadt[[aadt.caf_aadt]]
        aadt.caf_factors_citywide[[aadt.caf_factors_citywide]]
        aadt.count_based_aadt[[aadt.count_based_aadt]]
        aadt.counts_tmc[[aadt.counts_tmc]]
        aadt.caf_madt[[aadt.caf_madt]]
        aadt.estimated_aadt_from_svc[[aadt.estimated_aadt_from_svc]]
        aadt.counts[[aadt.counts]]
        aadt.caf_madowt[[aadt.caf_madowt]]
        aadt.estimated_aadt_from_tmc[[aadt.estimated_aadt_from_tmc]]
        aadt.network[[aadt.network]]
        aadt.turning_probs_combined[[aadt.turning_probs_combined]]
        aadt.counts_miovision[[aadt.counts_miovision]]
    end
    aadt.network --> aadt.network_connections
    aadt.network_connections --> aadt.turning_probs_combined
    aadt.network --> aadt.counts_tmc
    aadt.counts_miovision --> aadt.counts
    aadt.counts_tmc --> aadt.counts
    aadt.network --> aadt.counts_miovision
    aadt.counts_miovision --> aadt.caf_madowt
    aadt.caf_madowt --> aadt.caf_madt
    aadt.caf_madt --> aadt.caf_aadt
    aadt.caf_aadt --> aadt.caf_factors_citywide
    aadt.caf_madowt --> aadt.caf_factors_citywide
    aadt.caf_factors_citywide --> aadt.caf_factors_presentation
    aadt.caf_aadt --> aadt.caf_factors
    aadt.caf_madowt --> aadt.caf_factors
    aadt.caf_factors_citywide --> aadt.estimated_aadt_from_svc
    aadt.caf_factors_citywide --> aadt.estimated_aadt_from_tmc
    aadt.counts_tmc --> aadt.estimated_aadt_from_tmc
    aadt.caf_aadt --> aadt.estimated_aadt_from_incomplete_miovision
    aadt.caf_factors_citywide --> aadt.estimated_aadt_from_incomplete_miovision
    aadt.counts_miovision --> aadt.estimated_aadt_from_incomplete_miovision
    aadt.caf_aadt --> aadt.estimated_aadt_from_counts
    aadt.estimated_aadt_from_incomplete_miovision --> aadt.estimated_aadt_from_counts
    aadt.estimated_aadt_from_svc --> aadt.estimated_aadt_from_counts
    aadt.estimated_aadt_from_tmc --> aadt.estimated_aadt_from_counts
    aadt.network --> aadt.estimated_aadt_from_counts
    aadt.estimated_aadt_from_counts --> aadt.estimated_aadt_from_counts_latest
    aadt.estimated_aadt_from_counts --> aadt.count_based_aadt
    aadt.count_based_aadt --> aadt.palmerston_corridors
        style aadt.network fill:#f9f,stroke:#333,stroke-width:4px
Loading

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

Successfully merging this pull request may close these issues.

Create Mermaid Diagrams from pg_catalog

2 participants