You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the SQLite URI filename format for an in memory database sqlite:///file::memory:?uri=true Flask-SQLAlchemy still creates a database file on disk.
MRE
You can replicate this behaviour locally with the following code:
Sparrow0hawk
changed the title
Using SQLite URI format for in-memory database still creates a file
Using SQLite URI filename format for in-memory database still creates a file
Feb 18, 2024
Outline
When using the SQLite URI filename format for an in memory database
sqlite:///file::memory:?uri=true
Flask-SQLAlchemy still creates a database file on disk.MRE
You can replicate this behaviour locally with the following code:
If you start the app with
flask run --debug
you'll find you have aninstance/:memory:
file on disk.Expected behaviour
Running the above snippet does not produce a file on disk.
Environment:
The text was updated successfully, but these errors were encountered: