Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1207 | |
| 1208 | // Format implements the NodeFormatter interface. |
| 1209 | func (d *DString) Format(ctx *FmtCtx) { |
| 1210 | buf, f := &ctx.Buffer, ctx.flags |
| 1211 | if f.HasFlags(fmtRawStrings) { |
| 1212 | buf.WriteString(string(*d)) |
| 1213 | } else { |
| 1214 | lex.EncodeSQLStringWithFlags(buf, string(*d), f.EncodeFlags()) |
| 1215 | } |
| 1216 | } |
| 1217 | |
| 1218 | // Size implements the Datum interface. |
| 1219 | func (d *DString) Size() uintptr { |
nothing calls this directly
no test coverage detected