mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
Add BaseDatabaseSchemaEditor.table_sql() (#1212)
Co-Authored-By: Ryan Vinzent <ryan.vinzent@invitae.com> Co-authored-by: Ryan Vinzent <ryan.vinzent@invitae.com>
This commit is contained in:
@@ -56,6 +56,7 @@ class BaseDatabaseSchemaEditor(ContextManager[Any]):
|
||||
) -> None: ...
|
||||
def execute(self, sql: Union[Statement, str], params: Optional[Sequence[Any]] = ...) -> None: ...
|
||||
def quote_name(self, name: str) -> str: ...
|
||||
def table_sql(self, model: Type[Model]) -> Tuple[str, List[Any]]: ...
|
||||
def column_sql(
|
||||
self, model: Type[Model], field: Field, include_default: bool = ...
|
||||
) -> Union[Tuple[None, None], Tuple[str, List[Any]]]: ...
|
||||
|
||||
Reference in New Issue
Block a user