I'm not trying to be an ass, but what are the advantages to using Elixer 
over using the declarative syntax such as:
from sqlalchemy import *
from sqlalchemy.orm import relation, scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base


dbe = create_engine(<somedatabaseconnectionstring>)

session = scoped_session(sessionmaker(bind=dbe))


mapper = session.mapper
meta = MetaData(bind=dbe)

Base = declarative_base(mapper=mapper)


class People(Base):
    __table__ = Table('people', meta, autoload=True)
   
    def __repr__(self):
        return 'user: %s %s' % (self.fname, self.lname)

print 'first get everyone in the database'
people = People.query()
for p in people:
    print p

Jose

Gaetan de Menten wrote:
> I am very pleased to announce that version 0.6.1 of Elixir
> (http://elixir.ematia.de) is now available. As always, feedback is
> very welcome, preferably on Elixir mailing list.
>
> This is a minor release featuring some bug fixes (one of them to
> handle a late rename in SQLAlchemy's 0.5 beta cycle), a new, slighty
> nicer, syntax for providing custom arguments to the column(s) needed
> for ManyToOne relationships and some exception messages improvements.
>
> The full list of changes can be seen at:
> http://elixir.ematia.de/trac/browser/elixir/tags/0.6.1/CHANGES
>
> What is Elixir?
> ---------------------
>
> Elixir is a declarative layer on top of the SQLAlchemy library. It is
> a fairly thin wrapper, which provides the ability to create simple
> Python classes that map directly to relational database tables (this
> pattern is often referred to as the Active Record design pattern),
> providing many of the benefits of traditional databases without losing
> the convenience of Python objects.
>
> Elixir is intended to replace the ActiveMapper SQLAlchemy extension,
> and the TurboEntity project but does not intend to replace
> SQLAlchemy's core features, and instead focuses on providing a simpler
> syntax for defining model objects when you do not need the full
> expressiveness of SQLAlchemy's manual mapper definitions.
>
> Mailing list
> ----------------
>
> http://groups.google.com/group/sqlelixir/about
>
>   

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

Reply via email to