Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-05-29 18:15:44 +07:00
parent ad0fdbf043
commit 1b056aabd2
2 changed files with 7 additions and 2 deletions

View File

@@ -4,3 +4,4 @@ from ..sql_db import Cursor
def get_installed_modules(cursor: Cursor) -> list[str]: ... def get_installed_modules(cursor: Cursor) -> list[str]: ...
def get_neutralization_queries(modules: Iterable[str]) -> Iterator[str]: ... def get_neutralization_queries(modules: Iterable[str]) -> Iterator[str]: ...
def neutralize_database(cursor: Cursor) -> None: ...

View File

@@ -18,13 +18,17 @@ def exp_create_database(
country_code: str | None = ..., country_code: str | None = ...,
phone: str | None = ..., phone: str | None = ...,
) -> Literal[True]: ... ) -> Literal[True]: ...
def exp_duplicate_database(db_original_name: str, db_name: str) -> Literal[True]: ... def exp_duplicate_database(
db_original_name: str, db_name: str, neutralize_database: bool = ...
) -> Literal[True]: ...
def exp_drop(db_name: str) -> bool: ... def exp_drop(db_name: str) -> bool: ...
def exp_dump(db_name: str, format: str) -> str: ... def exp_dump(db_name: str, format: str) -> str: ...
def dump_db_manifest(cr: Cursor) -> dict[str, Any]: ... def dump_db_manifest(cr: Cursor) -> dict[str, Any]: ...
def dump_db(db_name: str, stream, backup_format: str = ...) -> IO | None: ... def dump_db(db_name: str, stream, backup_format: str = ...) -> IO | None: ...
def exp_restore(db_name: str, data, copy: bool = ...) -> Literal[True]: ... def exp_restore(db_name: str, data, copy: bool = ...) -> Literal[True]: ...
def restore_db(db: str, dump_file: str, copy: bool = ...) -> None: ... def restore_db(
db: str, dump_file: str, copy: bool = ..., neutralize_database: bool = ...
) -> None: ...
def exp_rename(old_name: str, new_name: str) -> Literal[True]: ... def exp_rename(old_name: str, new_name: str) -> Literal[True]: ...
def exp_change_admin_password(new_password: str) -> Literal[True]: ... def exp_change_admin_password(new_password: str) -> Literal[True]: ...
def exp_migrate_databases(databases: Iterable[str]) -> Literal[True]: ... def exp_migrate_databases(databases: Iterable[str]) -> Literal[True]: ...