Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1123 | |
| 1124 | // Format implements the NodeFormatter interface. |
| 1125 | func (d *DTimestampTZ) Format(ctx *FmtCtx) { |
| 1126 | f := ctx.flags |
| 1127 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 1128 | if !bareStrings { |
| 1129 | ctx.WriteByte('\'') |
| 1130 | } |
| 1131 | ctx.WriteString(d.Time.Format(TimestampTZOutputFormat)) |
| 1132 | if !bareStrings { |
| 1133 | ctx.WriteByte('\'') |
| 1134 | } |
| 1135 | } |
| 1136 | |
| 1137 | // Size implements the Datum interface. |
| 1138 | func (d *DTimestampTZ) Size() uintptr { |
nothing calls this directly
no test coverage detected