Relational algebra SQL generator
# visit every node in the relation AST generator = ::::::.(relation) # generate an SQL string sql = generator.to_sql # generate an SQL subquery string subquery_sql = generator.to_subquery
The purpose of this gem is to produce valid SQL from a axiom relation. A relation is a representation of a query constructed using relational algebra organized into an AST. Each node in the AST corresponds to an operation defined in the algebra.
See CONTRIBUTING.md for details.
Copyright © 2010-2013 Dan Kubb. See LICENSE for details.