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

Method SQLString

postgres/parser/sem/tree/type_name.go:220–229  ·  view source on GitHub ↗

SQLString implements the ResolvableTypeReference interface.

()

Source from the content-addressed store, hash-verified

218
219// SQLString implements the ResolvableTypeReference interface.
220func (node *ArrayTypeReference) SQLString() string {
221 var ctx FmtCtx
222 if typ, ok := GetStaticallyKnownType(node.ElementType); ok {
223 ctx.WriteString(types.MakeArray(typ).SQLString())
224 } else {
225 ctx.WriteString(node.ElementType.SQLString())
226 ctx.WriteString("[]")
227 }
228 return ctx.String()
229}
230
231// SQLString implements the ResolvableTypeReference interface.
232func (name *UnresolvedObjectName) SQLString() string {

Callers

nothing calls this directly

Calls 5

MakeArrayFunction · 0.92
GetStaticallyKnownTypeFunction · 0.85
WriteStringMethod · 0.80
SQLStringMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected