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

Interface ConversationState

src/store/conversation.ts:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17interface ConversationState {
18 getState: () => ConversationState;
19 conversationList: Conversation[];
20 currentConversationId?: Id;
21 createConversation: (connectionId?: Id, databaseName?: string) => Conversation;
22 setCurrentConversationId: (conversationId: Id | undefined) => void;
23 getConversationById: (conversationId: Id | undefined) => Conversation | undefined;
24 updateConversation: (conversationId: Id, conversation: Partial<Conversation>) => void;
25 clearConversation: (filter: (conversation: Conversation) => boolean) => void;
26 updateSelectedTablesNameList: (selectedTableNameList: string[]) => void;
27 updateSelectedSchemaName: (selectedSchemaName: string) => void;
28}
29
30export const useConversationStore = create<ConversationState>()(
31 persist(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected