/ lib / jedi / third_party / django-stubs / django-stubs / db / __init__.pyi
__init__.pyi
 1  from typing import Any
 2  
 3  from .utils import (
 4      DEFAULT_DB_ALIAS as DEFAULT_DB_ALIAS,
 5      DJANGO_VERSION_PICKLE_KEY as DJANGO_VERSION_PICKLE_KEY,
 6      ProgrammingError as ProgrammingError,
 7      IntegrityError as IntegrityError,
 8      OperationalError as OperationalError,
 9      DatabaseError as DatabaseError,
10      DataError as DataError,
11      NotSupportedError as NotSupportedError,
12      InternalError as InternalError,
13      InterfaceError as InterfaceError,
14      ConnectionHandler as ConnectionHandler,
15      Error as Error,
16      ConnectionDoesNotExist as ConnectionDoesNotExist,
17  )
18  
19  from . import migrations
20  
21  connections: Any
22  router: Any
23  connection: Any
24  
25  class DefaultConnectionProxy:
26      def __getattr__(self, item: str) -> Any: ...
27      def __setattr__(self, name: str, value: Any) -> None: ...
28      def __delattr__(self, name: str) -> None: ...
29  
30  def close_old_connections(**kwargs: Any) -> None: ...
31  def reset_queries(**kwargs: Any) -> None: ...