WriteLeftRightIdentity writes identity with escaping if needed
(l, r string)
| 107 | |
| 108 | // WriteLeftRightIdentity writes identity with escaping if needed |
| 109 | func (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 |
| 127 | func (w *defaultDialect) WriteIdentityQuote(i string, quote byte) { |
nothing calls this directly
no test coverage detected