MCPcopy Create free account
hub / github.com/experdot/pointer / getObjectStoreName

Function getObjectStoreName

src/renderer/src/stores/persistence/storeConfig.ts:521–534  ·  view source on GitHub ↗
(storeName: string)

Source from the content-addressed store, hash-verified

519
520// 根据 store 名称获取对应的对象存储名称
521function getObjectStoreName(storeName: string): string {
522 const storeMap: { [key: string]: string } = {
523 'settings-store': OBJECT_STORES.SETTINGS,
524 'messages-store': OBJECT_STORES.MESSAGES,
525 'search-store': OBJECT_STORES.SEARCH,
526 'tabs-store': OBJECT_STORES.TABS,
527 'ui-store': OBJECT_STORES.UI,
528 'object-store': OBJECT_STORES.OBJECTS,
529 'crosstab-store': OBJECT_STORES.CROSSTAB,
530 'ai-tasks-store': OBJECT_STORES.AI_TASKS,
531 'favorites-store': OBJECT_STORES.FAVORITES
532 }
533 return storeMap[storeName] || storeName
534}
535
536// 通用的store状态清除函数
537export const clearStoreState = async (storeName: string) => {

Callers 3

createPersistConfigFunction · 0.85
clearStoreStateFunction · 0.85
initializeStoreStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected