MCPcopy Index your code
hub / github.com/cayleygraph/cayley / SQL

Method SQL

graph/sql/shape.go:187–193  ·  view source on GitHub ↗
(b *Builder)

Source from the content-addressed store, hash-verified

185
186func (Subquery) isSource() {}
187func (s Subquery) SQL(b *Builder) string {
188 q := "(" + s.Query.SQL(b) + ")"
189 if s.Alias != "" {
190 q += " AS " + b.EscapeField(s.Alias)
191 }
192 return q
193}
194func (s Subquery) Args() []Value {
195 return s.Query.Args()
196}

Callers

nothing calls this directly

Calls 2

EscapeFieldMethod · 0.80
SQLMethod · 0.65

Tested by

no test coverage detected