m

Issue #142 resolved
Mike Bayer repo owner created an issue

forgot to press "submit" on this one - need standard generator functionality:

  x = mapper.select(...)[4:5](4:5)  # -> adds LIMIT/OFFSET as appropriate

ideally would like to have this on lazyload relations as well which is trickier:

  x = myobj.items[5:6](5:6)

Comments (1)

  1. Mike Bayer reporter
    • changed status to resolved
    • changed title to m

    SelectResults has been included in the build and can be enabled by default via :

       install_mods('selectresults')
    

    or per mapper:

       from sqlalchemy.mods.selectresults import SelectResultsExt
       m = mapper(myclass, mytable, extension=extension=SelectResultsExt()
    

    off a relation is a different ballgame, which I'd rather not get into right now.

  2. Log in to comment