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:
Adam Johnson
2022-10-27 19:32:50 +01:00
committed by GitHub
parent ae5af12c9b
commit e20d5307d1

View File

@@ -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]]]: ...