MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / rlTable

Method rlTable

pkg/sql/sem/tree/pretty.go:206–212  ·  view source on GitHub ↗

rlTable produces a Table using Right alignment of the first column.

(rows ...pretty.TableRow)

Source from the content-addressed store, hash-verified

204
205// rlTable produces a Table using Right alignment of the first column.
206func (p *PrettyCfg) rlTable(rows ...pretty.TableRow) pretty.Doc {
207 alignment := pretty.TableNoAlign
208 if p.Align != PrettyNoAlign {
209 alignment = pretty.TableRightAlignFirstColumn
210 }
211 return pretty.Table(alignment, pretty.Keyword, p.DoNotNewLineAfterColName, rows...)
212}
213
214// llTable produces a Table using Left alignment of the first column.
215func (p *PrettyCfg) llTable(docFn func(string) pretty.Doc, rows ...pretty.TableRow) pretty.Doc {

Callers 15

docMethod · 0.80
docMethod · 0.80
docMethod · 0.80
docRowMethod · 0.80
docMethod · 0.80
docMethod · 0.80
docMethod · 0.80
docMethod · 0.80
docMethod · 0.80
docMethod · 0.80
docMethod · 0.80
docMethod · 0.80

Calls 1

TableFunction · 0.92

Tested by

no test coverage detected