func (swfs *SurveyWiFiScan) FromRows(rows *sql.Rows) error {
	var scanswfs struct {
		ID           int
		CreateTime   sql.NullTime
		UpdateTime   sql.NullTime
		Ssid         sql.NullString
		Bssid        sql.NullString
		Timestamp    sql.NullTime
		Frequency    sql.NullInt64
		Channel      sql.NullInt64
		Band         sql.NullString
		ChannelWidth sql.NullInt64
		Capabilities sql.NullString
		Strength     sql.NullInt64
		Latitude     sql.NullFloat64
		Longitude    sql.NullFloat64
	}
	// the order here should be the same as in the `surveywifiscan.Columns`.
	if err := rows.Scan(
		&scanswfs.ID,
		&scanswfs.CreateTime,
		&scanswfs.UpdateTime,
		&scanswfs.Ssid,
		&scanswfs.Bssid,
		&scanswfs.Timestamp,
		&scanswfs.Frequency,
		&scanswfs.Channel,
		&scanswfs.Band,
		&scanswfs.ChannelWidth,
		&scanswfs.Capabilities,
		&scanswfs.Strength,
		&scanswfs.Latitude,
		&scanswfs.Longitude,
	); err != nil {
		return err
	}
	swfs.ID = strconv.Itoa(scanswfs.ID)
	swfs.CreateTime = scanswfs.CreateTime.Time
	swfs.UpdateTime = scanswfs.UpdateTime.Time
	swfs.Ssid = scanswfs.Ssid.String
	swfs.Bssid = scanswfs.Bssid.String
	swfs.Timestamp = scanswfs.Timestamp.Time
	swfs.Frequency = int(scanswfs.Frequency.Int64)
	swfs.Channel = int(scanswfs.Channel.Int64)
	swfs.Band = scanswfs.Band.String
	swfs.ChannelWidth = int(scanswfs.ChannelWidth.Int64)
	swfs.Capabilities = scanswfs.Capabilities.String
	swfs.Strength = int(scanswfs.Strength.Int64)
	swfs.Latitude = scanswfs.Latitude.Float64
	swfs.Longitude = scanswfs.Longitude.Float64
	return nil
}
// FromRows scans the sql response data into SurveyWiFiScan.
FromRows scans the sql response data into SurveyWiFiScan.
// FromRows scans the sql response data into SurveyWiFiScan .
func (swfs *SurveyWiFiScan) FromRows(rows *sql.Rows) error {
	var scanswfs struct {
		ID           int
		CreateTime   sql.NullTime
		UpdateTime   sql.NullTime
		Ssid         sql.NullString
		Bssid        sql.NullString
		Timestamp    sql.NullTime
		Frequency    sql.NullInt64
		Channel      sql.NullInt64
		Band         sql.NullString
		ChannelWidth sql.NullInt64
		Capabilities sql.NullString
		Strength     sql.NullInt64
		Latitude     sql.NullFloat64
		Longitude    sql.NullFloat64
	}
	if err := rows.Scan(
		&scanswfs.ID,
		&scanswfs.CreateTime,
		&scanswfs.UpdateTime,
		&scanswfs.Ssid,
		&scanswfs.Bssid,
		&scanswfs.Timestamp,
		&scanswfs.Frequency,
		&scanswfs.Channel,
		&scanswfs.Band,
		&scanswfs.ChannelWidth,
		&scanswfs.Capabilities,
		&scanswfs.Strength,
		&scanswfs.Latitude,
		&scanswfs.Longitude,
	); err != nil {
		return err
	}
	swfs.ID = strconv.Itoa(scanswfs.ID)
	swfs.CreateTime = scanswfs.CreateTime.Time
	swfs.UpdateTime = scanswfs.UpdateTime.Time
	swfs.Ssid = scanswfs.Ssid.String
	swfs.Bssid = scanswfs.Bssid.String
	swfs.Timestamp = scanswfs.Timestamp.Time
	swfs.Frequency = int(scanswfs.Frequency.Int64)
	swfs.Channel = int(scanswfs.Channel.Int64)
	swfs.Band = scanswfs.Band.String
	swfs.ChannelWidth = int(scanswfs.ChannelWidth.Int64)
	swfs.Capabilities = scanswfs.Capabilities.String
	swfs.Strength = int(scanswfs.Strength.Int64)
	swfs.Latitude = scanswfs.Latitude.Float64
	swfs.Longitude = scanswfs.Longitude.Float64
	return nil
}
func ( swfs * SurveyWiFiScan ) FromRows ( rows * sql . Rows ) error { var scanswfs struct { ID int CreateTime sql . NullTime UpdateTime sql . NullTime Ssid sql . NullString Bssid sql . NullString Timestamp sql . NullTime Frequency sql . NullInt64 Channel sql . NullInt64 Band sql . NullString ChannelWidth sql . NullInt64 Capabilities sql . NullString Strength sql . NullInt64 Latitude sql . NullFloat64 Longitude sql . NullFloat64 } if err := rows . Scan ( & scanswfs . ID , & scanswfs . CreateTime , & scanswfs . UpdateTime , & scanswfs . Ssid , & scanswfs . Bssid , & scanswfs . Timestamp , & scanswfs . Frequency , & scanswfs . Channel , & scanswfs . Band , & scanswfs . ChannelWidth , & scanswfs . Capabilities , & scanswfs . Strength , & scanswfs . Latitude , & scanswfs . Longitude , ) ; err != nil { return err } swfs . ID = strconv . Itoa ( scanswfs . ID ) swfs . CreateTime = scanswfs . CreateTime . Time swfs . UpdateTime = scanswfs . UpdateTime . Time swfs . Ssid = scanswfs . Ssid . String swfs . Bssid = scanswfs . Bssid . String swfs . Timestamp = scanswfs . Timestamp . Time swfs . Frequency = int ( scanswfs . Frequency . Int64 ) swfs . Channel = int ( scanswfs . Channel . Int64 ) swfs . Band = scanswfs . Band . String swfs . ChannelWidth = int ( scanswfs . ChannelWidth . Int64 ) swfs . Capabilities = scanswfs . Capabilities . String swfs . Strength = int ( scanswfs . Strength . Int64 ) swfs . Latitude = scanswfs . Latitude . Float64 swfs . Longitude = scanswfs . Longitude . Float64 return nil }
FromRows scans the sql response data into SurveyWiFiScan.
FromRows scans the sql response data into SurveyWiFiScan .
// the order here should be the same as in the `surveywifiscan.Columns`.