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

Function makeTable

backend/api/mcp/tool_schema_test.go:45–55  ·  view source on GitHub ↗
(name string, rowCount int64, columns []map[string]any, indexes []map[string]any)

Source from the content-addressed store, hash-verified

43}
44
45func makeTable(name string, rowCount int64, columns []map[string]any, indexes []map[string]any) map[string]any {
46 t := map[string]any{
47 "name": name,
48 "rowCount": fmt.Sprintf("%d", rowCount),
49 "columns": columns,
50 }
51 if len(indexes) > 0 {
52 t["indexes"] = indexes
53 }
54 return t
55}
56
57func makeColumn(name, typ string, nullable bool) map[string]any {
58 return map[string]any{

Calls

no outgoing calls

Tested by

no test coverage detected