- attached sqlsoup.py.diff
Schema support for SqlSoup
Issue #250
resolved
The attached patch adds namespace support to the SqlSoup plugin, with docs. I did not add tests because SQLite does not support namespaces (confusingly called "schema" in SQLAlchemy and in PostgreSQL).
The getattr usage is a bit ugly:
An alternative could be item syntax:
{{{>>> users = soup['my_namespace.users']('my_namespace.users').select()}}}
P.S.: a "plugin" Trac component could be useful.
Comments (10)
-
Account Deleted -
Account Deleted ...and I went and used the "schema" word in the ticket title. Sorry. :-)
-
Account Deleted Added schema support in 1736 via
soup.schema = myschemaname
Per-table schema support is too clunky. One soup per schema is cleaner.
-
Account Deleted this can be closed now
-
repo owner - assigned issue to
-
repo owner - changed milestone to 0.3.0
-
Account Deleted - changed status to resolved
-
Account Deleted - changed milestone to next micropoint release
-
repo owner - changed milestone to 0.4.0
Milestone next micropoint release deleted
-
repo owner - removed milestone
Removing milestone: 0.4.0 (automated comment)
- Log in to comment
Namespace support for SqlSoup