Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Specifying engine pool class in config #266
Is there any way to specify this in Flask-SQLAlchemy? Specifically I want to use a disk-based SQLite db with the
Thanks in advance!
I take it from the fact that this issue is still open that you are not suggesting subclassing FlaskSQLAlchemy.
I wanted to present another use case for setting the pool class (and offer to implement). I need to configure the pool class to the NullPool for scaling reasons. Here's a comment from my subclass explaining why this was necessary:
Let me know if you'd be open to a patch for configuring poolclass. I've worked around the problem but have multiple apps with this requirement and it would be convenient if this option where directly settable via flask-sqlalchemy.
added a commit
Aug 20, 2015
I was having a problem on AppEngine losing MySQL server connection. I was told to use NullPool to solve so I made this change: tmeryu@a20c309
I didn't like the pool_size == 0 check (#215) because it's a valid option given the SQLAlchemy documentation.
I'll leave a pull request but I'm open to suggestions of how to improve the code.
referenced a pull request that will
Aug 20, 2015
Being able to specify