Skip to content

Commit ad76326

Browse files
committed
refactor: type name
Signed-off-by: Andres Taylor <[email protected]>
1 parent beee2b0 commit ad76326

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

go/summarize/summarize-keys.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ func renderTablesJoined(md *markdown.MarkDown, summary *keys.Output) {
242242
md.PrintHeader("Tables Joined", 2)
243243
}
244244

245-
type foo struct {
245+
type joinDetails struct {
246246
Tbl1, Tbl2 string
247247
Occurrences int
248248
predicates []operators.JoinPredicate
249249
}
250250

251-
var joins []foo
251+
var joins []joinDetails
252252
for tables, predicates := range g {
253253
occurrences := 0
254254
for _, count := range predicates {
@@ -258,7 +258,7 @@ func renderTablesJoined(md *markdown.MarkDown, summary *keys.Output) {
258258
sort.Slice(joinPredicates, func(i, j int) bool {
259259
return joinPredicates[i].String() < joinPredicates[j].String()
260260
})
261-
joins = append(joins, foo{
261+
joins = append(joins, joinDetails{
262262
Tbl1: tables.Tbl1,
263263
Tbl2: tables.Tbl2,
264264
Occurrences: occurrences,

go/summarize/testdata/keys-summary.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Query Analysis Report
22

3-
**Date of Analysis**: 2024-11-09 10:28:32
4-
**Analyzed File**: `go/summarize/testdata/keys-log.json`
3+
**Date of Analysis**: 2024-01-01 01:02:03
4+
**Analyzed File**: `testdata/keys-log.json`
55

66
## Tables
77
|Table Name|Reads|Writes|

0 commit comments

Comments
 (0)