MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Join

Function Join

postgres/parser/pretty/util.go:34–36  ·  view source on GitHub ↗

This file contains utility and other non-standard functions not listed in the paper (see the package documentation). Utility functions are those that are generally useful or need to create certain structures (like union) in a correct way. Join joins Docs d with string s and Line. There is no space b

(s string, d ...Doc)

Source from the content-addressed store, hash-verified

32// Join joins Docs d with string s and Line. There is no space between each
33// item in d and the subsequent instance of s.
34func Join(s string, d ...Doc) Doc {
35 return JoinDoc(Concat(Text(s), Line), d...)
36}
37
38// JoinDoc joins Docs d with Doc s.
39func JoinDoc(s Doc, d ...Doc) Doc {

Callers 2

commaSeparatedMethod · 0.92
JoinGroupAlignedFunction · 0.85

Calls 3

JoinDocFunction · 0.85
ConcatFunction · 0.70
TextFunction · 0.70

Tested by

no test coverage detected