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

Method execute_query

chatbi/database/drivers/postgres_adapter.py:142–227  ·  view source on GitHub ↗

Execute a query on the PostgreSQL database. Args: connection_info: PostgreSQL connection parameters query: SQL query to execute timeout: Query timeout in seconds max_rows: Maximum rows to return parameters: Optional query

(
        self,
        connection_info: ConnectionInfo,
        query: str,
        timeout: int = 30,
        max_rows: int = 1000,
        parameters: Optional[dict[str, Any]] = None,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

_extract_conn_paramsMethod · 0.95
DatabaseErrorClass · 0.90
connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected