Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small updates to virtual row doc file, based on patch from mwlang

  • Loading branch information...
commit 5643d01adc71d519aff798b99173217c1f1d5c21 1 parent 0a0567b
Jeremy Evans authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  doc/virtual_rows.rdoc
3  doc/virtual_rows.rdoc
@@ -15,6 +15,7 @@ called. This is best shown by example:
ds.filter{column > 1} # column > 1
ds.filter{table__column > 1} # table.column > 1
ds.filter{function(1) > 1} # function(1) > 1
+{[column1, sum(column2).as(sum)]} # column1, sum(column2) AS sum{version{}} # version(){count(:*){}} # count(*){count(:distinct, col1){}} # count(DISTINCT col1)
@@ -54,3 +55,5 @@ that. If you want to create identifiers or qualified identifiers
with the same name as existing local variables, make sure ruby
knows it is a method call instead of a local variable reference
by not ommiting the parentheses at the end of the method call.
+If you want to return multiple arguments (common for select and
+order), have the block return an array of arguments.
Please sign in to comment.
Something went wrong with that request. Please try again.