sqlalchemy dynamic schema on entity at runtime

前端 未结 4 558
一生所求
一生所求 2020-12-09 00:00

I\'m using SQL Alchemy and have some schema\'s that are account specific. The name of the schema is derived using the account ID, so I don\'t have the name of the schema un

4条回答
  •  粉色の甜心
    2020-12-09 00:38

    from sqlalchemy 1.1, this can be done easily using using schema_translation_map.

    https://docs.sqlalchemy.org/en/11/changelog/migration_11.html#multi-tenancy-schema-translation-for-table-objects

提交回复
热议问题