The usage is pretty clunky, as you note. I think I'd prefer making each Soup instance work with a single schema/namespace.
-J
On 7/21/06,
Nicola Larosa <[EMAIL PROTECTED]> wrote:
Hi, thanks to Michael and contributors for a wonderful tool. :-)
I created a ticket (#250) with a patch that adds namespace support to the
SqlSoup plugin, with docs. I did not add tests because SQLite does not
support namespaces (confusingly called "schema" in both SQLAlchemy and
PostgreSQL).
The getattr usage is a bit ugly:
>>> users = getattr(soup, 'my_namespace.users').select()
An alternative could be item syntax:
>>> users = soup['my_namespace.users'].select()
--
Nicola Larosa - http://www.tekNico.net/
It's amazing how often people block their future growth and development
by focusing only on what they expected, not what is actually coming
into being. -- Carmine Coyote, March 2006
--
Jonathan Ellis
http://spyced.blogspot.com
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users