Add BaseDatabaseWrapper.operations (#1119)

This commit is contained in:
Adam Johnson
2022-08-26 10:40:17 +01:00
committed by GitHub
parent 63ea17744f
commit f626448105

View File

@@ -1,6 +1,6 @@
from contextlib import contextmanager from contextlib import contextmanager
from datetime import tzinfo from datetime import tzinfo
from typing import Any, Callable, Dict, Generator, Iterator, List, Optional, Set, Tuple, Type, TypeVar from typing import Any, Callable, Dict, Generator, Iterator, List, MutableMapping, Optional, Set, Tuple, Type, TypeVar
from django.db.backends.base.client import BaseDatabaseClient from django.db.backends.base.client import BaseDatabaseClient
from django.db.backends.base.creation import BaseDatabaseCreation from django.db.backends.base.creation import BaseDatabaseCreation
@@ -53,6 +53,7 @@ class BaseDatabaseWrapper:
introspection: BaseDatabaseIntrospection = ... introspection: BaseDatabaseIntrospection = ...
ops: BaseDatabaseOperations = ... ops: BaseDatabaseOperations = ...
validation: BaseDatabaseValidation = ... validation: BaseDatabaseValidation = ...
operators: MutableMapping[str, str] = ...
def __init__(self, settings_dict: Dict[str, Any], alias: str = ...) -> None: ... def __init__(self, settings_dict: Dict[str, Any], alias: str = ...) -> None: ...
def ensure_timezone(self) -> bool: ... def ensure_timezone(self) -> bool: ...
@property @property