Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 2569 | |
| 2570 | // Format implements the NodeFormatter interface. |
| 2571 | func (d *DTimeTZ) Format(ctx *FmtCtx) { |
| 2572 | f := ctx.flags |
| 2573 | bareStrings := f.HasFlags(FmtFlags(lexbase.EncBareStrings)) |
| 2574 | if !bareStrings { |
| 2575 | ctx.WriteByte('\'') |
| 2576 | } |
| 2577 | ctx.Write(PGWireFormatTimeTZ(d.TimeTZ, ctx.scratch[:0])) |
| 2578 | if !bareStrings { |
| 2579 | ctx.WriteByte('\'') |
| 2580 | } |
| 2581 | } |
| 2582 | |
| 2583 | // Size implements the Datum interface. |
| 2584 | func (d *DTimeTZ) Size() uintptr { |
nothing calls this directly
no test coverage detected