Skip to content

Commit

Permalink
fixed the readme per discussion w/ tenderlove
Browse files Browse the repository at this point in the history
  • Loading branch information
zenspider committed Feb 18, 2014
1 parent 38321b1 commit 5c415ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.markdown
Expand Up @@ -4,6 +4,8 @@


## DESCRIPTION ## DESCRIPTION


Arel Really Exasperates Logicians

Arel is a SQL AST manager for Ruby. It Arel is a SQL AST manager for Ruby. It


1. Simplifies the generation of complex SQL queries 1. Simplifies the generation of complex SQL queries
Expand Down Expand Up @@ -35,7 +37,7 @@ query.to_sql


### More Sophisticated Queries ### More Sophisticated Queries


Here is a whirlwind tour through the most common relational operators. These will probably cover 80% of all interaction with the database. Here is a whirlwind tour through the most common SQL operators. These will probably cover 80% of all interaction with the database.


First is the 'restriction' operator, `where`: First is the 'restriction' operator, `where`:


Expand Down Expand Up @@ -72,7 +74,7 @@ users.project(users[:name]).group(users[:name])
# => SELECT users.name FROM users GROUP BY users.name # => SELECT users.name FROM users GROUP BY users.name
``` ```


The best property of the Relational Algebra is its "composability", or closure under all operations. For example, to restrict AND project, just "chain" the method invocations: The best property of arel is its "composability", or closure under all operations. For example, to restrict AND project, just "chain" the method invocations:


```ruby ```ruby
users \ users \
Expand Down

0 comments on commit 5c415ec

Please sign in to comment.