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

Method doc

pkg/sql/sem/tree/pretty.go:1617–1630  ·  view source on GitHub ↗
(p *PrettyCfg)

Source from the content-addressed store, hash-verified

1615}
1616
1617func (node *ShardedIndexDef) doc(p *PrettyCfg) pretty.Doc {
1618 // Final layout:
1619 //
1620 // USING HASH [WITH BUCKET_COUNT = bucket_count]
1621 //
1622 if _, ok := node.ShardBuckets.(DefaultVal); ok {
1623 return pretty.Keyword("USING HASH")
1624 }
1625 parts := []pretty.Doc{
1626 pretty.Keyword("USING HASH WITH BUCKET_COUNT = "),
1627 p.Doc(node.ShardBuckets),
1628 }
1629 return pretty.Fold(pretty.ConcatSpace, parts...)
1630}
1631
1632func (node *CreateIndex) doc(p *PrettyCfg) pretty.Doc {
1633 // Final layout:

Callers

nothing calls this directly

Calls 3

KeywordFunction · 0.92
FoldFunction · 0.92
DocMethod · 0.80

Tested by

no test coverage detected