MCPcopy
hub / github.com/cayleygraph/cayley / SQL

Method SQL

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

Source from the content-addressed store, hash-verified

245}
246
247func (w Where) SQL(b *Builder) string {
248 name := w.Field
249 if w.Table != "" {
250 name = w.Table + "." + b.EscapeField(name)
251 }
252 parts := []string{name, string(w.Op)}
253 if w.Value != nil {
254 parts = append(parts, w.Value.SQL(b))
255 }
256 return strings.Join(parts, " ")
257}
258
259var _ Shape = Select{}
260

Callers

nothing calls this directly

Calls 2

EscapeFieldMethod · 0.80
SQLMethod · 0.65

Tested by

no test coverage detected