Socket
Book a DemoInstallSign in
Socket

rom_sql_graph

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rom_sql_graph

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

RomSqlGraph

Rom-rb and hanami tool for generating db (sql) association graph.

For generating image you need to install graphviz tool (http://www.graphviz.org)

Installation

Add this line to your application's Gemfile:

gem 'rom_sql_graph'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rom_sql_graph

Usage

# First: create rom repository object
repo = UserRepository.new

# Second: create Rom::Sql::Graph object
graph = RomSqlGraph.generate(repo)

# Generate image or html file with your db associations
graph.generate_image
graph.generate_html

# convert graph to any type
graph.to_a
graph.to_s
graph.to_json

Image example

ossboard-graph

TODO:

  • add tests
  • generate html
  • generate json

Contributing

Bug 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 code of conduct.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 05 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.