mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-17 17:35:59 +08:00
initial commit
This commit is contained in:
26
django/db/backends/base/introspection.pyi
Normal file
26
django/db/backends/base/introspection.pyi
Normal file
@@ -0,0 +1,26 @@
|
||||
from django.db.backends.base.base import BaseDatabaseWrapper
|
||||
from django.db.backends.utils import CursorWrapper
|
||||
from typing import (
|
||||
Dict,
|
||||
List,
|
||||
Optional,
|
||||
Tuple,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class BaseDatabaseIntrospection:
|
||||
def __init__(self, connection: BaseDatabaseWrapper) -> None: ...
|
||||
def column_name_converter(self, name: str) -> str: ...
|
||||
def django_table_names(self, only_existing: bool = ..., include_views: bool = ...) -> List[str]: ...
|
||||
def get_field_type(
|
||||
self,
|
||||
data_type: str,
|
||||
description: FieldInfo
|
||||
) -> Union[str, Tuple[str, Dict[str, int]]]: ...
|
||||
def table_name_converter(self, name: str) -> str: ...
|
||||
def table_names(
|
||||
self,
|
||||
cursor: Optional[CursorWrapper] = ...,
|
||||
include_views: bool = ...
|
||||
) -> List[str]: ...
|
||||
Reference in New Issue
Block a user