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

Function writeTableHeader

backend/api/mcp/tool_schema.go:686–689  ·  view source on GitHub ↗

writeTableHeader writes the single-table header line.

(sb *strings.Builder, t *TableDetail)

Source from the content-addressed store, hash-verified

684
685// writeTableHeader writes the single-table header line.
686func writeTableHeader(sb *strings.Builder, t *TableDetail) {
687 fmt.Fprintf(sb, "Table: %s (%d rows, %d columns, %d indexes, %d foreign keys)\n",
688 t.Name, t.RowCount, len(t.Columns), len(t.Indexes), len(t.ForeignKeys))
689}
690
691// writeSchemasHeader writes the multi-schema overview header lines.
692func writeSchemasHeader(sb *strings.Builder, sections []SchemaSection, include string) {

Callers 1

formatSchemaOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected