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

Method execute

chatbi/database/drivers/sqlite_adapter.py:181–235  ·  view source on GitHub ↗

Execute a SQL query with improved error handling and connection management. Args: query: SQL query to execute params: Query parameters Returns: List of dictionaries containing query results Raises: DatabaseError: If

(
        self, query: str, params: Optional[Union[tuple, list[tuple], dict]] = None
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

get_tablesMethod · 0.95
get_table_schemaMethod · 0.95
_is_connection_validMethod · 0.45
_create_connectionMethod · 0.45

Calls 3

get_connectionMethod · 0.95
DatabaseErrorClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected