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

Function handleConnectionSelect

src/components/Sidebar/ConnectionList.tsx:35–41  ·  view source on GitHub ↗
(connection: Connection)

Source from the content-addressed store, hash-verified

33 };
34
35 const handleConnectionSelect = async (connection: Connection) => {
36 const databaseList = await connectionStore.getOrFetchDatabaseList(connection);
37 connectionStore.setCurrentConnectionCtx({
38 connection,
39 database: head(databaseList),
40 });
41 };
42
43 const handleEditConnection = (connection: Connection) => {
44 setState({

Callers 1

ConnectionListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected