MCPcopy Create free account
hub / github.com/araddon/qlbridge / WriteDialect

Method WriteDialect

rel/sql.go:564–578  ·  view source on GitHub ↗
(w expr.DialectWriter)

Source from the content-addressed store, hash-verified

562}
563
564func (m *Columns) WriteDialect(w expr.DialectWriter) {
565 colCt := len(*m)
566 if colCt == 1 {
567 (*m)[0].WriteDialect(w)
568 return
569 } else if colCt == 0 {
570 return
571 }
572 for i, col := range *m {
573 if i != 0 {
574 io.WriteString(w, ", ")
575 }
576 col.WriteDialect(w)
577 }
578}
579func (m *Columns) String() string {
580 w := expr.NewDefaultWriter()
581 m.WriteDialect(w)

Callers 1

StringMethod · 0.95

Calls 1

WriteDialectMethod · 0.65

Tested by

no test coverage detected