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

Method insertViews

backend/plugin/parser/plsql/completion.go:224–233  ·  view source on GitHub ↗
(c *Completer, schemas map[string]bool)

Source from the content-addressed store, hash-verified

222}
223
224func (m CompletionMap) insertViews(c *Completer, schemas map[string]bool) {
225 for schema := range schemas {
226 for _, view := range c.listViews(schema) {
227 m.Insert(base.Candidate{
228 Type: base.CandidateTypeView,
229 Text: c.quotedIdentifierIfNeeded(view),
230 })
231 }
232 }
233}
234
235func (m CompletionMap) insertSequences(c *Completer, schemas map[string]bool) {
236 for schema := range schemas {

Calls 3

InsertMethod · 0.95
listViewsMethod · 0.45

Tested by

no test coverage detected