Using a different schema for the same declarative Base in sqlalchemy

前端 未结 3 1972
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 07:52

I am new to both Pyramid and SQLAlchemy. I am working on a Python Pyramid project with SQLAlchemy. I have a simple model set up below. How would I go about being able to use

3条回答
  •  囚心锁ツ
    2021-02-01 08:18

    just a guess

    LoadTender.__table_args__["schema"] = "whatever"
    

    Probably best to put it somewhere where your app configurator is creating the app

提交回复
热议问题