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

Method insertViews

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

Source from the content-addressed store, hash-verified

257}
258
259func (m CompletionMap) insertViews(c *Completer, schemas map[string]bool) {
260 for schema := range schemas {
261 for _, view := range c.listViews(schema) {
262 m.Insert(base.Candidate{
263 Type: base.CandidateTypeView,
264 Text: c.quotedIdentifierIfNeeded(view),
265 })
266 }
267 }
268}
269
270func (m CompletionMap) insertColumns(c *Completer, databases, tables map[string]bool) {
271 for database := range databases {

Callers 1

convertCandidatesMethod · 0.45

Calls 3

InsertMethod · 0.95
listViewsMethod · 0.45

Tested by

no test coverage detected