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

Function engineSupportsSchemas

backend/api/mcp/tool_schema.go:64–66  ·  view source on GitHub ↗

engineSupportsSchemas reports whether the given engine exposes named schemas to users. An empty engine string (unknown) is treated as single-schema for safety — the caller drops the filter and emits a note rather than risking zero tables from an exact-match miss.

(engine string)

Source from the content-addressed store, hash-verified

62// safety — the caller drops the filter and emits a note rather than risking
63// zero tables from an exact-match miss.
64func engineSupportsSchemas(engine string) bool {
65 return multiSchemaEngines[engine]
66}
67
68// SchemaInput is the input for the get_schema tool.
69type SchemaInput struct {

Callers 1

handleGetSchemaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected