MCPcopy Index your code
hub / github.com/piccolo-orm/piccolo / __init__

Method __init__

piccolo/engine/base.py:92–106  ·  view source on GitHub ↗
(
        self,
        engine_type: str,
        min_version_number: Union[int, float],
        log_queries: bool = False,
        log_responses: bool = False,
    )

Source from the content-addressed store, hash-verified

90 )
91
92 def __init__(
93 self,
94 engine_type: str,
95 min_version_number: Union[int, float],
96 log_queries: bool = False,
97 log_responses: bool = False,
98 ):
99 self.log_queries = log_queries
100 self.log_responses = log_responses
101 self.engine_type = engine_type
102 self.min_version_number = min_version_number
103
104 run_sync(self.check_version())
105 run_sync(self.prep_database())
106 self.query_id = 0
107
108 @abstractmethod
109 async def get_version(self) -> float:

Callers

nothing calls this directly

Calls 3

check_versionMethod · 0.95
prep_databaseMethod · 0.95
run_syncFunction · 0.90

Tested by

no test coverage detected