{"id":13778213,"url":"https://github.com/davydovanton/rom_sql_graph","last_synced_at":"2025-06-26T01:03:34.754Z","repository":{"id":56892617,"uuid":"83967713","full_name":"davydovanton/rom_sql_graph","owner":"davydovanton","description":"Display your DB (sql) association graph","archived":false,"fork":false,"pushed_at":"2020-05-06T19:26:48.000Z","size":23,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-11T22:10:51.317Z","etag":null,"topics":["associations","graph","hanami","rom","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davydovanton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-05T12:19:35.000Z","updated_at":"2022-08-23T16:30:10.000Z","dependencies_parsed_at":"2022-08-21T01:20:52.813Z","dependency_job_id":null,"html_url":"https://github.com/davydovanton/rom_sql_graph","commit_stats":null,"previous_names":["davydovanton/rom-sql-graph"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/davydovanton/rom_sql_graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davydovanton%2From_sql_graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davydovanton%2From_sql_graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davydovanton%2From_sql_graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davydovanton%2From_sql_graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davydovanton","download_url":"https://codeload.github.com/davydovanton/rom_sql_graph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davydovanton%2From_sql_graph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978910,"owners_count":23239417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["associations","graph","hanami","rom","ruby"],"created_at":"2024-08-03T18:00:52.114Z","updated_at":"2025-06-26T01:03:34.702Z","avatar_url":"https://github.com/davydovanton.png","language":"Ruby","readme":"# RomSqlGraph\n\n[Rom-rb](http://rom-rb.org) and [hanami](http://hanamirb.org) tool for generating db (sql) association graph.\n\n**For generating image you need to install graphviz tool (http://www.graphviz.org)**\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rom_sql_graph'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rom_sql_graph\n\n## Usage\n\n```ruby\n# First: create rom repository object\nrepo = UserRepository.new\n\n# Second: get ROM container\nrom_container = repo.container\n\n# Next: create Rom::Sql::Graph object\ngraph = RomSqlGraph.generate(rom_container)\n\n# Generate image or html file with your db associations\ngraph.generate_image\ngraph.generate_html\n\n# convert graph to any type\ngraph.to_a\ngraph.to_s\ngraph.to_json\n```\n\n### Image example\n![ossboard-graph](https://github.com/davydovanton/rom_sql_graph/blob/master/graph.jpg?raw=true)\n\n\n## TODO:\n- [ ] add tests\n- [x] generate html\n- [ ] generate json\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rom_sql_graph. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","funding_links":[],"categories":["Hanami Gem List"],"sub_categories":["Database"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavydovanton%2From_sql_graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavydovanton%2From_sql_graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavydovanton%2From_sql_graph/lists"}