Skip to content

winminsoe/cohesion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

cohesion

  • Simple implementation of table dependency viewer.
  • Better to view with the jq

Example

DB_DSN=root:root@/db_name go run main.go | jq .

{
  "table": "flow",
  "dependent_tables": [
    {
      "table": "flow_history",
      "column": "fk_flow"
    },
    {
      "table": "flow_item",
      "column": "fk_flow"
    }
  ]
}
{
  "table": "flow_history",
  "dependent_tables": null
}
{
  "table": "flow_item",
  "dependent_tables": null
}
{
  "table": "flow_status",
  "dependent_tables": [
    {
      "table": "flow",
      "column": "fk_flow_status"
    },
    {
      "table": "flow",
      "column": "retry_status"
    },
    {
      "table": "flow_history",
      "column": "from"
    },
    {
      "table": "flow_history",
      "column": "to"
    }
  ]
}
{
  "table": "users",
  "dependent_tables": [
    {
      "table": "flow_history",
      "column": "fk_user"
    }
  ]
}

About

mysql table dependency viewer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages