Skip to content

[sqlite3] Deprecate enable_shared_cache from dbapi2 #14501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions stdlib/sqlite3/dbapi2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ from sqlite3 import (
Warning as Warning,
)
from typing import Literal
from typing_extensions import deprecated

if sys.version_info >= (3, 12):
from _sqlite3 import (
Expand Down Expand Up @@ -216,6 +217,9 @@ if sys.version_info < (3, 14):
if sys.version_info < (3, 12):
if sys.version_info >= (3, 10):
# deprecation wrapper that has a different name for the argument...
@deprecated(
"Deprecated since 3.10; removed in Python 3.12. Instead, open database in URI mode using `cache=shared` parameter."
)
def enable_shared_cache(enable: int) -> None: ...
else:
from _sqlite3 import enable_shared_cache as enable_shared_cache
Expand Down
Loading