MCPcopy Create free account
hub / github.com/chatbi/chatbi / execute_query

Method execute_query

chatbi/database/database.py:294–317  ·  view source on GitHub ↗

Execute SQL query and return results as dictionaries. Args: sql: SQL query string params: Query parameters fetch: Whether to fetch and return results Returns: Query results as list of dictionaries Example:

(
        self, sql: str, params: Optional[list[Any]] = None, fetch: bool = True
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

connectionMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected