Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 587 | |
| 588 | // Format implements the NodeFormatter interface. |
| 589 | func (d *DString) Format(ctx *FmtCtx) { |
| 590 | buf, f := &ctx.Buffer, ctx.flags |
| 591 | if f.HasFlags(fmtRawStrings) { |
| 592 | buf.WriteString(string(*d)) |
| 593 | } else { |
| 594 | lex.EncodeSQLStringWithFlags(buf, string(*d), f.EncodeFlags()) |
| 595 | } |
| 596 | } |
| 597 | |
| 598 | // Size implements the Datum interface. |
| 599 | func (d *DString) Size() uintptr { |
nothing calls this directly
no test coverage detected