mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -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: ...
|
||||||
|
|||||||
@@ -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]: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user