WriteToBufferInCsv implements Stringer.WriteToBufferInCsv
(bf *bytes.Buffer, escapeBackslash bool, opt *csvOption)
| 276 | |
| 277 | // WriteToBufferInCsv implements Stringer.WriteToBufferInCsv |
| 278 | func (s *SQLTypeString) WriteToBufferInCsv(bf *bytes.Buffer, escapeBackslash bool, opt *csvOption) { |
| 279 | if s.RawBytes != nil { |
| 280 | bf.Write(opt.delimiter) |
| 281 | escapeCSV(s.RawBytes, bf, escapeBackslash, opt) |
| 282 | bf.Write(opt.delimiter) |
| 283 | } else { |
| 284 | bf.WriteString(opt.nullValue) |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | // SQLTypeBytes implements RowReceiverStringer which represents bytes type columns in database |
| 289 | type SQLTypeBytes struct { |
nothing calls this directly
no test coverage detected