MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / __init__

Method __init__

tests/utils/fake_client.py:63–76  ·  view source on GitHub ↗
(
        self,
        dialect: str,
        *,
        constraint_names: list[dict] | None = None,
        pragma_index_list: list[dict] | None = None,
        pragma_index_info: dict[str, list[dict]] | None = None,
        inline_comment: bool = True,
        charset: str | None = None,
    )

Source from the content-addressed store, hash-verified

61 """
62
63 def __init__(
64 self,
65 dialect: str,
66 *,
67 constraint_names: list[dict] | None = None,
68 pragma_index_list: list[dict] | None = None,
69 pragma_index_info: dict[str, list[dict]] | None = None,
70 inline_comment: bool = True,
71 charset: str | None = None,
72 ) -> None:
73 super().__init__(dialect, inline_comment=inline_comment, charset=charset)
74 self.constraint_names = constraint_names or []
75 self.pragma_index_list = pragma_index_list or []
76 self.pragma_index_info = pragma_index_info or {}
77
78 async def execute_query(self, query: str, values: list | None = None) -> tuple[int, list[dict]]:
79 if (

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected