Permalink
Browse files

Adds ExQL.Select.where setter

  • Loading branch information...
yrashk committed Jul 7, 2012
1 parent 4edd0bb commit 54a28667ea1c7aa8b633853c03a20f37797fb23c
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/queries/select.ex
View
@@ -2,6 +2,7 @@ defrecord ExQL.Select, dict: [fields: :*] do
use ExQL.Query
def from(v, query), do: query.dict Keyword.put(query.dict, :from, v)
+ def where(v, query), do: query.dict Keyword.put(query.dict, :where, v)
def statement(:modifiers, query) do
ExQL.Expression.join(dict(query)[:modifiers], :raw, " ")

0 comments on commit 54a2866

Please sign in to comment.