Permalink
Browse files

Adds setter for ExQL.Select.fields

  • Loading branch information...
1 parent 2b8ebf6 commit 240c97a1dd3ba8e5dd8fd0c8e60038e280d49029 @yrashk committed Jul 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/queries/select.ex
View
@@ -1,6 +1,7 @@
defrecord ExQL.Select, dict: [fields: :*] do
use ExQL.Query
+ def fields(v, query), do: query.dict Keyword.put(query.dict, :fields, v)
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)

0 comments on commit 240c97a

Please sign in to comment.