]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use SingletonThreadPool for in-memory SQLite
authorYongJieYongJie <KhooYongJie@gmx.com>
Wed, 28 Apr 2021 17:30:09 +0000 (13:30 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 28 Apr 2021 18:52:34 +0000 (20:52 +0200)
commit1ee6332ba261cc1b6bbc8f427d17f81614b07d9b
tree3bdb6554999b6e7275b27734d73b30e9323b337b
parent7fdaac7b2910b5612420378519b9f60d4649daff
Use SingletonThreadPool for in-memory SQLite
database created using filename uri

Default to using ``SingletonThreadPool`` for in-memory SQLite databases
created using URI filenames. Previously the default pool used was the
``NullPool`` that precented sharing the same database between multiple
engines.

Fixes: #6379
Closes: #6380
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6380
Pull-request-sha: 3b8024417a3a54c8269d43e40801aa4e58593540

Change-Id: Ice09622796455e796ede7711c98f3ceec13aa949
doc/build/changelog/unreleased_14/6379.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/pysqlite.py
test/dialect/test_sqlite.py