﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27077	Simplify calls to is_in_memory_db() in SQLite's DatabaseCreation	Chris Jerdonek	Chris Jerdonek	"Currently, the SQLite backend's `DatabaseCreation` class calls `self.connection.is_in_memory_db(database_name)` in several spots (in five places to be precise). [https://github.com/django/django/blob/ff445f4c19a0fdf6696c99efefa38b1409b8709f/django/db/backends/sqlite3/creation.py#L10 Here] is a link to the class in the source code.

This is a bit confusing because `is_in_memory_db()` doesn't actually depend on the connection in any way. It's only a function of the database name. (Intuitively, one way to see this is that if you are using a different database name, then you must be using a different connection.)

This ticket is to simplify / clarify this by refactoring out a function that depends only on the database name, as well making the calls inside `DatabaseCreation` more DRY.
"	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed			Accepted	1	0	0	0	0	0
