TypeError: Invalid argument(s) 'pool_size' sent to create_engine() when using flask_sqlalchemy
<p>I'm using 
SQLAlchemy==1.0.9 and
Flask-SQLAlchemy==2.1
in my Flask application and want to connect to a sqlite db.</p>

<p>I get the error</p>

<pre><code>TypeError: Invalid argument(s) 'pool_size' sent to create_engine(), using configuration SQLiteDialect_pysqlite/NullPool/Engine.
</code></pre>

<p>because flask_sqlalchemy always tries to create the engine with the pool_size parameter.</p>

<p>As far as I understand the parameter pool_size is not allowed as an argument for the DefaultEngineStrategy in SQLAlchemy.</p>

<p>Does anyone know a workaround for this issue?</p>

<p>Finally found it: A colleague introduced the config param SQLALCHEMY_POOL_SIZE in the Config Base Class to use it with mySQL.</p>

<p>Nevertheless it would be great if either flask_sqlalchemy or sqlalchemy would ignore the parameter instead of throwing an error.</p>

<p>I've created a ticket for the flask_sqlalchemy project:
<a href="https://github.com/mitsuhiko/flask-sqlalchemy/issues/426" rel="nofollow">https://github.com/mitsuhiko/flask-sqlalchemy/issues/426</a></p>

python sqlite sqlalchemy flask-sqlalchemy