MCPcopy Create free account
hub / github.com/bytebase/bytebase / Store

Struct Store

backend/store/store.go:18–39  ·  view source on GitHub ↗

Store provides database access to all raw objects.

Source from the content-addressed store, hash-verified

16
17// Store provides database access to all raw objects.
18type Store struct {
19 dbConnManager *DBConnectionManager
20 enableCache bool
21
22 // Cache.
23 Secret string
24 userEmailCache *lru.Cache[string, *UserMessage]
25 instanceCache *lru.Cache[string, *InstanceMessage]
26 databaseCache *lru.Cache[string, *DatabaseMessage]
27 projectCache *lru.Cache[string, *ProjectMessage]
28 policyCache *lru.Cache[string, *PolicyMessage]
29 settingCache *lru.Cache[string, *SettingMessage]
30 rolesCache *expirable.LRU[string, *RoleMessage]
31 groupCache *expirable.LRU[string, *GroupMessage]
32 groupMembersCache *expirable.LRU[string, map[string]bool]
33 memberGroupsCache *expirable.LRU[string, []string]
34 dbSchemaCache *expirable.LRU[string, *model.DatabaseMetadata]
35 iamPolicyCache *expirable.LRU[string, *IamPolicyMessage]
36
37 // Large objects.
38 sheetFullCache *lru.Cache[string, *SheetMessage]
39}
40
41// New creates a new instance of Store.
42// pgURL can be either a direct PostgreSQL URL or a file path containing the URL.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected