MCPcopy
hub / github.com/marimo-team/marimo / execute

Method execute

marimo/_sql/engines/ibis.py:62–72  ·  view source on GitHub ↗
(self, query: str)

Source from the content-addressed store, hash-verified

60 return str(self._connection.dialect)
61
62 def execute(self, query: str) -> Any:
63 query_expr = self._connection.sql(query)
64
65 sql_output_format = self.sql_output_format()
66
67 return convert_to_output(
68 sql_output_format=sql_output_format,
69 to_polars=lambda: query_expr.to_polars(),
70 to_pandas=lambda: query_expr.to_pandas(),
71 to_native=lambda: query_expr,
72 )
73
74 @staticmethod
75 def is_compatible(var: Any) -> bool:

Callers 15

test_ibis_engine_executeFunction · 0.95
_parse_sql_duckdbFunction · 0.45
execute_duckdb_sqlFunction · 0.45
execute_duckdb_queryFunction · 0.45
_Function · 0.45
_delete_variablesMethod · 0.45
_Function · 0.45
_Function · 0.45
_Function · 0.45

Calls 3

convert_to_outputFunction · 0.90
sql_output_formatMethod · 0.80
to_polarsMethod · 0.80

Tested by 2

test_ibis_engine_executeFunction · 0.76