[Chicago] Elixir tutorial ?
Kumar McMillan
kumar.mcmillan at gmail.com
Tue Apr 1 22:31:39 CEST 2008
On Tue, Apr 1, 2008 at 3:11 PM, Lukasz Szybalski <szybalski at gmail.com> wrote:
> Hello,
> Would you guys know of a good tutorial for elixir?
> I am switching form assign_mapper to elixir, but I can't find simple
> examples of how to do various different select, select with relations,
> etc...
Elixir entities just proxy SA's Query object, so sqlalchemy docs are
all you need.
as mentioned in the tutorial here
http://elixir.ematia.de/trac/wiki/TutorialDivingIn04 you get
Movie.query. That's just a proxy to session.query(Movie) so you can
follow these docs for more info:
http://www.sqlalchemy.org/docs/04/ormtutorial.html#datamapping_querying
. Movie.query.all(), Movie.query.filter_by(title="Pee Wee's Big
Adventure") ... anything you want.
More information about the Chicago
mailing list