MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / handleExecuteQuery

Function handleExecuteQuery

src/components/CodeBlock.tsx:34–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 };
33
34 const handleExecuteQuery = () => {
35 if (!currentConnectionCtx) {
36 toast.error("Please select a connection first");
37 return;
38 }
39
40 queryStore.setContext({
41 connection: currentConnectionCtx.connection,
42 database: currentConnectionCtx.database,
43 messageId: messageId,
44 statement: value,
45 });
46 queryStore.toggleDrawer(true);
47 };
48
49 return (
50 <div className="w-full max-w-full relative font-sans text-[16px]">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected