Skip to content

Commit

Permalink
Merge pull request #25 from GameAnalytics/type
Browse files Browse the repository at this point in the history
Add @type definition for queries
  • Loading branch information
legoscia authored Oct 16, 2018
2 parents d22e7dc + cb9551e commit 1cb16ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/elixir_druid/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ defmodule ElixirDruid.Query do
to_include: nil, merge: nil, analysis_types: nil, limit_spec: nil,
bound: nil, virtual_columns: nil]

# A query has type ElixirDruid.query.t()
@type t :: %__MODULE__{}

defmacro from(source, kw) do
query_fields = List.foldl(kw, [], &build_query/2)
quote generated: true, bind_quoted: [source: source, query_fields: query_fields] do
Expand Down

0 comments on commit 1cb16ef

Please sign in to comment.