MCPcopy Index your code
hub / github.com/bytebase/bytebase / getScene

Method getScene

backend/api/lsp/handler.go:145–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143}
144
145func (h *Handler) getScene() base.SceneType {
146 h.mu.Lock()
147 defer h.mu.Unlock()
148 if h.metadata == nil {
149 return base.SceneTypeAll
150 }
151 switch h.metadata.Scene {
152 case "query":
153 return base.SceneTypeQuery
154 default:
155 return base.SceneTypeAll
156 }
157}
158
159func (h *Handler) getEngineType(ctx context.Context) storepb.Engine {
160 instanceID := h.getInstanceID()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected