SQLAlchemy, postgres and schema

Issue #3207 invalid
charles pierre created an issue

Hi, I am trying to work to setup a multi-schema environnement with sqlalchemy and postgres but i am struggling for two reasons :

  1. It seems that you cannot change dynamically the schema (i did metadata.schema = 'new_schema' and looped over all tables to also do table.schema = 'new_schema' but it feels like a hack). Does the library have a function to do this properly ?

  2. Some object does not inherit the schema option from the table or metadata. An example would be the postgresql enum type. How do you control in which schema the type gets created ?

Comments (6)

  1. charles pierre Account Deactivated reporter

    Ok great ! Thank you so much for the quick reply and the awesome work on this wonderful library

  2. Log in to comment