-
-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SQLite backend is_in_memory_db() functions (#1218)
* Add SQLite backend is_in_memory_db() functions * Update django-stubs/db/backends/sqlite3/creation.pyi Co-authored-by: Nikita Sobolev <[email protected]>
- Loading branch information
1 parent
e865c5b
commit 1d78b8f
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
from os import PathLike | ||
from typing import Union | ||
|
||
from django.db.backends.base.creation import BaseDatabaseCreation | ||
from django.db.backends.sqlite3.base import DatabaseWrapper | ||
|
||
class DatabaseCreation(BaseDatabaseCreation): | ||
connection: DatabaseWrapper | ||
|
||
@staticmethod | ||
def is_in_memory_db(database_name: Union[str, PathLike[str]]) -> bool: ... |