to_dot.rb

lib/sequel/extensions/to_dot.rb
Last Update: 2020-07-09 12:21:33 -0700

This adds a Sequel::Dataset#to_dot method. The to_dot method returns a string that can be processed by graphviz’s dot program in order to get a visualization of the dataset. Basically, it shows a version of the dataset’s abstract syntax tree.

To load the extension:

Sequel.extension :to_dot

Related module: Sequel::ToDot