MCPcopy Create free account
hub / github.com/araddon/qlbridge / WriteLeftRightIdentity

Method WriteLeftRightIdentity

expr/dialect.go:109–124  ·  view source on GitHub ↗

WriteLeftRightIdentity writes identity with escaping if needed

(l, r string)

Source from the content-addressed store, hash-verified

107
108// WriteLeftRightIdentity writes identity with escaping if needed
109func (w *defaultDialect) WriteLeftRightIdentity(l, r string) {
110 if l == "" {
111 w.WriteIdentity(r)
112 return
113 }
114
115 // `user`.`email` type namespacing, may need to be escaped differently
116 if w.stripNamespace {
117 w.WriteIdentity(r)
118 return
119 }
120 w.WriteIdentity(l)
121 w.Write([]byte{'.'})
122 w.WriteIdentity(r)
123 return
124}
125
126// WriteIdentityQuote write out an identity using given quote character
127func (w *defaultDialect) WriteIdentityQuote(i string, quote byte) {

Callers

nothing calls this directly

Calls 1

WriteIdentityMethod · 0.95

Tested by

no test coverage detected