Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-11-26 10:26:59 +07:00
parent 5df04b9160
commit f1349e9738
3 changed files with 4 additions and 1 deletions

View File

@@ -2,5 +2,6 @@ from . import (
common as common,
db as db,
model as model,
server as server
server as server,
wsgi_server as wsgi_server
)

View File

@@ -0,0 +1 @@
def application(environ, start_response): ...

View File

@@ -31,6 +31,7 @@ def add_foreign_key(cr: Cursor, tablename1: str, columnname1: str, tablename2: s
def get_foreign_keys(cr: Cursor, tablename1: str, columnname1: str, tablename2: str, columnname2: str, ondelete) -> list[str]: ...
def fix_foreign_key(cr: Cursor, tablename1: str, columnname1: str, tablename2: str, columnname2: str, ondelete) -> list[str]: ...
def index_exists(cr: Cursor, indexname: str) -> int: ...
def check_index_exist(cr: Cursor, indexname: str) -> None: ...
def create_index(cr: Cursor, indexname: str, tablename: str, expressions: Iterable[str], method: str = ..., where: str = ...) -> None: ...
def create_unique_index(cr: Cursor, indexname: str, tablename: str, expressions: Iterable[str]) -> None: ...
def drop_index(cr: Cursor, indexname: str, tablename: str) -> None: ...