On Sat, Aug 22, 2009 at 23:08, matkor<[email protected]> wrote:

> I am pretty new to elixir..

Welcome aboard...

> How to execute group by query ?
> Any more elixir-like solution than pure SQLAlchemy used in example
> [1]:
>
> session.query(func.count(Movie.year),Movie.year).group_by
> (Movie.year).all()

Nope, that's how you do it in Elixir too. Elixir's scope doesn't go
beyond defining your entities/classes/tables. For querying, you are
basically in SQLAlchemy land (with a few optional convenience methods
for the really common cases -- which is not one of them).

-- 
Gaƫtan de Menten
http://openhex.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to