func (t *Technician) FromRows(rows *sql.Rows) error {
	var scant struct {
		ID         int
		CreateTime sql.NullTime
		UpdateTime sql.NullTime
		Name       sql.NullString
		Email      sql.NullString
	}
	// the order here should be the same as in the `technician.Columns`.
	if err := rows.Scan(
		&scant.ID,
		&scant.CreateTime,
		&scant.UpdateTime,
		&scant.Name,
		&scant.Email,
	); err != nil {
		return err
	}
	t.ID = strconv.Itoa(scant.ID)
	t.CreateTime = scant.CreateTime.Time
	t.UpdateTime = scant.UpdateTime.Time
	t.Name = scant.Name.String
	t.Email = scant.Email.String
	return nil
}
// FromRows scans the sql response data into Technician.
FromRows scans the sql response data into Technician.
// FromRows scans the sql response data into Technician .
func (t *Technician) FromRows(rows *sql.Rows) error {
	var scant struct {
		ID         int
		CreateTime sql.NullTime
		UpdateTime sql.NullTime
		Name       sql.NullString
		Email      sql.NullString
	}
	if err := rows.Scan(
		&scant.ID,
		&scant.CreateTime,
		&scant.UpdateTime,
		&scant.Name,
		&scant.Email,
	); err != nil {
		return err
	}
	t.ID = strconv.Itoa(scant.ID)
	t.CreateTime = scant.CreateTime.Time
	t.UpdateTime = scant.UpdateTime.Time
	t.Name = scant.Name.String
	t.Email = scant.Email.String
	return nil
}
func ( t * Technician ) FromRows ( rows * sql . Rows ) error { var scant struct { ID int CreateTime sql . NullTime UpdateTime sql . NullTime Name sql . NullString Email sql . NullString } if err := rows . Scan ( & scant . ID , & scant . CreateTime , & scant . UpdateTime , & scant . Name , & scant . Email , ) ; err != nil { return err } t . ID = strconv . Itoa ( scant . ID ) t . CreateTime = scant . CreateTime . Time t . UpdateTime = scant . UpdateTime . Time t . Name = scant . Name . String t . Email = scant . Email . String return nil }
FromRows scans the sql response data into Technician.
FromRows scans the sql response data into Technician .
// the order here should be the same as in the `technician.Columns`.