Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 959 | |
| 960 | // Format implements the NodeFormatter interface. |
| 961 | func (d *DTimeTZ) Format(ctx *FmtCtx) { |
| 962 | f := ctx.flags |
| 963 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 964 | if !bareStrings { |
| 965 | ctx.WriteByte('\'') |
| 966 | } |
| 967 | ctx.WriteString(d.TimeTZ.String()) |
| 968 | if !bareStrings { |
| 969 | ctx.WriteByte('\'') |
| 970 | } |
| 971 | } |
| 972 | |
| 973 | // Size implements the Datum interface. |
| 974 | func (d *DTimeTZ) Size() uintptr { |
nothing calls this directly
no test coverage detected