No commit activity in last 3 years
No release in over 3 years
Generate SQL from a axiom relation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.5.2, ~> 1.5

Runtime

~> 0.2.0
 Project Readme

axiom-sql-generator

Relational algebra SQL generator

Gem Version Build Status Dependency Status Code Climate Coverage Status

Usage

# visit every node in the relation AST
generator = Axiom::SQL::Generator::Relation.visit(relation)

# generate an SQL string
sql = generator.to_sql

# generate an SQL subquery string
subquery_sql = generator.to_subquery

Description

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.

The SQL produced has been verified and tested against PostgreSQL 9.0.4. Dialects for MySQL, SQLite, Oracle and SQL Server are planned.

Contributing

See CONTRIBUTING.md for details.

Copyright

Copyright © 2010-2013 Dan Kubb. See LICENSE for details.