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

Function makeSchemaWithViews

backend/api/mcp/tool_schema_test.go:33–43  ·  view source on GitHub ↗
(name string, views []string, tables ...map[string]any)

Source from the content-addressed store, hash-verified

31}
32
33func makeSchemaWithViews(name string, views []string, tables ...map[string]any) map[string]any {
34 viewList := make([]map[string]any, 0, len(views))
35 for _, v := range views {
36 viewList = append(viewList, map[string]any{"name": v})
37 }
38 return map[string]any{
39 "name": name,
40 "tables": tables,
41 "views": viewList,
42 }
43}
44
45func makeTable(name string, rowCount int64, columns []map[string]any, indexes []map[string]any) map[string]any {
46 t := map[string]any{

Callers 1

TestGetSchema_SummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected