Ejemplo n.º 1
0
func (rs *SimpleRows) ColumnPackets() ([]driver.RawPacket, error) {
	pkgs := make([]driver.RawPacket, len(rs.Cols))

	for i, column := range rs.Cols {
		pkgs[i] = driver.RawPacket(column.Dump())
	}

	return pkgs, nil
}
Ejemplo n.º 2
0
func (rows *MySQLRows) DumpColumns() []driver.RawPacket {
	pkgs := make([]driver.RawPacket, len(rows.columns))

	for i, column := range rows.columns {
		pkgs[i] = driver.RawPacket(column.Dump())
	}

	return pkgs
}