the ‘schema’ is a fixed name within the Table object. If you want to work on a different schema on each request, set up search_path on the connection at the start of the request:
http://www.postgresql.org/docs/9.1/static/ddl-schemas.html#DDL-SCHEMAS-PATH M3nt0r3 <m3nt...@gmail.com> wrote: > Hi, > > I have a postgresql with many scheme, every schema is a company. > I am trying to change the scheme to match the user is making the login or > change the schema per subdomain. ( at wsgi level it already worked ) > when the first user make the login is ok , meta and mappers are there > "mapped" to the right scheme but when i try to change scheme, (making some > Metadata.clear() or other stuff) the mapper still return the old scheme. I > think it is not possibe to map ALL the schemas in the DB because of the same > name of the tables and of the Mapper Classes too. > i am searching for some documentation, some advice > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy+unsubscr...@googlegroups.com. > To post to this group, send email to sqlalchemy@googlegroups.com. > Visit this group at http://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.