Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1288 | |
| 1289 | // Format implements the NodeFormatter interface. |
| 1290 | func (d *DGeography) Format(ctx *FmtCtx) { |
| 1291 | f := ctx.flags |
| 1292 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 1293 | if !bareStrings { |
| 1294 | ctx.WriteByte('\'') |
| 1295 | } |
| 1296 | ctx.WriteString(d.Geography.EWKBHex()) |
| 1297 | if !bareStrings { |
| 1298 | ctx.WriteByte('\'') |
| 1299 | } |
| 1300 | } |
| 1301 | |
| 1302 | // Size implements the Datum interface. |
| 1303 | func (d *DGeography) Size() uintptr { |
nothing calls this directly
no test coverage detected