SQLAlchemy / Flask / PostgreSQL pool connection

前端 未结 3 723
半阙折子戏
半阙折子戏 2021-02-19 02:34

After having played for a long time with Django, I\'m trying a bit of Flask with SQLAlchemy, and I must say I quite like it. However there is something that I don\'t get: I have

3条回答
  •  花落未央
    2021-02-19 03:26

    NullPool can be set on the create_engine method

    ` from sqlalchemy.pool import NullPool
      engine = create_engine('db connection url',poolclass=NullPool)`
    

提交回复
热议问题