MCPcopy Create free account
hub / github.com/donatj/sqlread / showTables

Function showTables

cmd/sqlread/query.go:111–125  ·  view source on GitHub ↗
(tree sqlread.SummaryTree, w DataWriter)

Source from the content-addressed store, hash-verified

109}
110
111func showTables(tree sqlread.SummaryTree, w DataWriter) {
112 tables := make([]string, len(tree))
113 i := 0
114 for cv := range tree {
115 tables[i] = cv
116 i++
117 }
118
119 sort.Strings(tables)
120 for _, t := range tables {
121 w.Write([]string{t})
122 }
123
124 w.Flush()
125}

Callers 1

interactiveFunction · 0.85

Calls 2

WriteMethod · 0.80
FlushMethod · 0.65

Tested by

no test coverage detected