MCPcopy Create free account
hub / github.com/araddon/qlbridge / IsSchemaQuery

Method IsSchemaQuery

plan/plan.go:672–681  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

670 return nil
671}
672func (m *Source) IsSchemaQuery() bool {
673 if m.Stmt != nil && len(m.Stmt.Schema) > 0 {
674 //u.Debugf("schema:%q name:%q", m.Stmt.Schema, m.Stmt.Name)
675 schemaName := strings.ToLower(m.Stmt.Schema)
676 if schemaName == "context" || schemaName == "schema" {
677 return true
678 }
679 }
680 return false
681}
682func (m *Source) ToPb() (*PlanPb, error) {
683 m.serializeToPb()
684 return m.pbplan, nil

Callers 1

LoadConnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected