func (tpl *TupleEqualityList) EncodeSQL(buf *bytes.Buffer) {
	if len(tpl.Columns) == 1 {
		tpl.encodeAsIn(buf)
		return
	}
	tpl.encodeAsEquality(buf)
}
EncodeSQL generates the where clause constraints for the tuple
equality.
package sqlparser
import (
	"bytes"
	"github.com/cossacklabs/acra/sqlparser/dependency/sqltypes"
)
type Encodable interface {
	EncodeSQL(buf *bytes.Buffer)
}
type InsertValues [][]sqltypes.Value
func (iv InsertValues) EncodeSQL(buf *bytes.Buffer) {
	for i, rows := range iv {
		if i != 0 {
			buf.WriteString(", ")
		}
		buf.WriteByte('(')
		for j, bv := range rows {
			if j != 0 {
				buf.WriteString(", ")
			}
			bv.EncodeSQL(buf)
		}
		buf.WriteByte(')')
	}
}
type TupleEqualityList struct {
	Columns []ColIdent
	Rows    [][]sqltypes.Value
}