Skip to content

Instantly share code, notes, and snippets.

@ravinggenius
Created January 21, 2014 17:56
Show Gist options
  • Save ravinggenius/8544781 to your computer and use it in GitHub Desktop.
Save ravinggenius/8544781 to your computer and use it in GitHub Desktop.
use Ecto.Query
query = from w in Weather,
where: w.prcp > 0 or w.prcp == nil,
where: w.code in 27500..27599,
select: w
Repo.all(query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment