func (scs *SurveyCellScan) FromRows(rows *sql.Rows) error {
	var scanscs struct {
		ID                    int
		CreateTime            sql.NullTime
		UpdateTime            sql.NullTime
		NetworkType           sql.NullString
		SignalStrength        sql.NullInt64
		Timestamp             sql.NullTime
		BaseStationID         sql.NullString
		NetworkID             sql.NullString
		SystemID              sql.NullString
		CellID                sql.NullString
		LocationAreaCode      sql.NullString
		MobileCountryCode     sql.NullString
		MobileNetworkCode     sql.NullString
		PrimaryScramblingCode sql.NullString
		Operator              sql.NullString
		Arfcn                 sql.NullInt64
		PhysicalCellID        sql.NullString
		TrackingAreaCode      sql.NullString
		TimingAdvance         sql.NullInt64
		Earfcn                sql.NullInt64
		Uarfcn                sql.NullInt64
		Latitude              sql.NullFloat64
		Longitude             sql.NullFloat64
	}
	// the order here should be the same as in the `surveycellscan.Columns`.
	if err := rows.Scan(
		&scanscs.ID,
		&scanscs.CreateTime,
		&scanscs.UpdateTime,
		&scanscs.NetworkType,
		&scanscs.SignalStrength,
		&scanscs.Timestamp,
		&scanscs.BaseStationID,
		&scanscs.NetworkID,
		&scanscs.SystemID,
		&scanscs.CellID,
		&scanscs.LocationAreaCode,
		&scanscs.MobileCountryCode,
		&scanscs.MobileNetworkCode,
		&scanscs.PrimaryScramblingCode,
		&scanscs.Operator,
		&scanscs.Arfcn,
		&scanscs.PhysicalCellID,
		&scanscs.TrackingAreaCode,
		&scanscs.TimingAdvance,
		&scanscs.Earfcn,
		&scanscs.Uarfcn,
		&scanscs.Latitude,
		&scanscs.Longitude,
	); err != nil {
		return err
	}
	scs.ID = strconv.Itoa(scanscs.ID)
	scs.CreateTime = scanscs.CreateTime.Time
	scs.UpdateTime = scanscs.UpdateTime.Time
	scs.NetworkType = scanscs.NetworkType.String
	scs.SignalStrength = int(scanscs.SignalStrength.Int64)
	scs.Timestamp = scanscs.Timestamp.Time
	scs.BaseStationID = scanscs.BaseStationID.String
	scs.NetworkID = scanscs.NetworkID.String
	scs.SystemID = scanscs.SystemID.String
	scs.CellID = scanscs.CellID.String
	scs.LocationAreaCode = scanscs.LocationAreaCode.String
	scs.MobileCountryCode = scanscs.MobileCountryCode.String
	scs.MobileNetworkCode = scanscs.MobileNetworkCode.String
	scs.PrimaryScramblingCode = scanscs.PrimaryScramblingCode.String
	scs.Operator = scanscs.Operator.String
	scs.Arfcn = int(scanscs.Arfcn.Int64)
	scs.PhysicalCellID = scanscs.PhysicalCellID.String
	scs.TrackingAreaCode = scanscs.TrackingAreaCode.String
	scs.TimingAdvance = int(scanscs.TimingAdvance.Int64)
	scs.Earfcn = int(scanscs.Earfcn.Int64)
	scs.Uarfcn = int(scanscs.Uarfcn.Int64)
	scs.Latitude = scanscs.Latitude.Float64
	scs.Longitude = scanscs.Longitude.Float64
	return nil
}
// FromRows scans the sql response data into SurveyCellScan.
FromRows scans the sql response data into SurveyCellScan.
// FromRows scans the sql response data into SurveyCellScan .
func (scs *SurveyCellScan) FromRows(rows *sql.Rows) error {
	var scanscs struct {
		ID                    int
		CreateTime            sql.NullTime
		UpdateTime            sql.NullTime
		NetworkType           sql.NullString
		SignalStrength        sql.NullInt64
		Timestamp             sql.NullTime
		BaseStationID         sql.NullString
		NetworkID             sql.NullString
		SystemID              sql.NullString
		CellID                sql.NullString
		LocationAreaCode      sql.NullString
		MobileCountryCode     sql.NullString
		MobileNetworkCode     sql.NullString
		PrimaryScramblingCode sql.NullString
		Operator              sql.NullString
		Arfcn                 sql.NullInt64
		PhysicalCellID        sql.NullString
		TrackingAreaCode      sql.NullString
		TimingAdvance         sql.NullInt64
		Earfcn                sql.NullInt64
		Uarfcn                sql.NullInt64
		Latitude              sql.NullFloat64
		Longitude             sql.NullFloat64
	}
	if err := rows.Scan(
		&scanscs.ID,
		&scanscs.CreateTime,
		&scanscs.UpdateTime,
		&scanscs.NetworkType,
		&scanscs.SignalStrength,
		&scanscs.Timestamp,
		&scanscs.BaseStationID,
		&scanscs.NetworkID,
		&scanscs.SystemID,
		&scanscs.CellID,
		&scanscs.LocationAreaCode,
		&scanscs.MobileCountryCode,
		&scanscs.MobileNetworkCode,
		&scanscs.PrimaryScramblingCode,
		&scanscs.Operator,
		&scanscs.Arfcn,
		&scanscs.PhysicalCellID,
		&scanscs.TrackingAreaCode,
		&scanscs.TimingAdvance,
		&scanscs.Earfcn,
		&scanscs.Uarfcn,
		&scanscs.Latitude,
		&scanscs.Longitude,
	); err != nil {
		return err
	}
	scs.ID = strconv.Itoa(scanscs.ID)
	scs.CreateTime = scanscs.CreateTime.Time
	scs.UpdateTime = scanscs.UpdateTime.Time
	scs.NetworkType = scanscs.NetworkType.String
	scs.SignalStrength = int(scanscs.SignalStrength.Int64)
	scs.Timestamp = scanscs.Timestamp.Time
	scs.BaseStationID = scanscs.BaseStationID.String
	scs.NetworkID = scanscs.NetworkID.String
	scs.SystemID = scanscs.SystemID.String
	scs.CellID = scanscs.CellID.String
	scs.LocationAreaCode = scanscs.LocationAreaCode.String
	scs.MobileCountryCode = scanscs.MobileCountryCode.String
	scs.MobileNetworkCode = scanscs.MobileNetworkCode.String
	scs.PrimaryScramblingCode = scanscs.PrimaryScramblingCode.String
	scs.Operator = scanscs.Operator.String
	scs.Arfcn = int(scanscs.Arfcn.Int64)
	scs.PhysicalCellID = scanscs.PhysicalCellID.String
	scs.TrackingAreaCode = scanscs.TrackingAreaCode.String
	scs.TimingAdvance = int(scanscs.TimingAdvance.Int64)
	scs.Earfcn = int(scanscs.Earfcn.Int64)
	scs.Uarfcn = int(scanscs.Uarfcn.Int64)
	scs.Latitude = scanscs.Latitude.Float64
	scs.Longitude = scanscs.Longitude.Float64
	return nil
}
func ( scs * SurveyCellScan ) FromRows ( rows * sql . Rows ) error { var scanscs struct { ID int CreateTime sql . NullTime UpdateTime sql . NullTime NetworkType sql . NullString SignalStrength sql . NullInt64 Timestamp sql . NullTime BaseStationID sql . NullString NetworkID sql . NullString SystemID sql . NullString CellID sql . NullString LocationAreaCode sql . NullString MobileCountryCode sql . NullString MobileNetworkCode sql . NullString PrimaryScramblingCode sql . NullString Operator sql . NullString Arfcn sql . NullInt64 PhysicalCellID sql . NullString TrackingAreaCode sql . NullString TimingAdvance sql . NullInt64 Earfcn sql . NullInt64 Uarfcn sql . NullInt64 Latitude sql . NullFloat64 Longitude sql . NullFloat64 } if err := rows . Scan ( & scanscs . ID , & scanscs . CreateTime , & scanscs . UpdateTime , & scanscs . NetworkType , & scanscs . SignalStrength , & scanscs . Timestamp , & scanscs . BaseStationID , & scanscs . NetworkID , & scanscs . SystemID , & scanscs . CellID , & scanscs . LocationAreaCode , & scanscs . MobileCountryCode , & scanscs . MobileNetworkCode , & scanscs . PrimaryScramblingCode , & scanscs . Operator , & scanscs . Arfcn , & scanscs . PhysicalCellID , & scanscs . TrackingAreaCode , & scanscs . TimingAdvance , & scanscs . Earfcn , & scanscs . Uarfcn , & scanscs . Latitude , & scanscs . Longitude , ) ; err != nil { return err } scs . ID = strconv . Itoa ( scanscs . ID ) scs . CreateTime = scanscs . CreateTime . Time scs . UpdateTime = scanscs . UpdateTime . Time scs . NetworkType = scanscs . NetworkType . String scs . SignalStrength = int ( scanscs . SignalStrength . Int64 ) scs . Timestamp = scanscs . Timestamp . Time scs . BaseStationID = scanscs . BaseStationID . String scs . NetworkID = scanscs . NetworkID . String scs . SystemID = scanscs . SystemID . String scs . CellID = scanscs . CellID . String scs . LocationAreaCode = scanscs . LocationAreaCode . String scs . MobileCountryCode = scanscs . MobileCountryCode . String scs . MobileNetworkCode = scanscs . MobileNetworkCode . String scs . PrimaryScramblingCode = scanscs . PrimaryScramblingCode . String scs . Operator = scanscs . Operator . String scs . Arfcn = int ( scanscs . Arfcn . Int64 ) scs . PhysicalCellID = scanscs . PhysicalCellID . String scs . TrackingAreaCode = scanscs . TrackingAreaCode . String scs . TimingAdvance = int ( scanscs . TimingAdvance . Int64 ) scs . Earfcn = int ( scanscs . Earfcn . Int64 ) scs . Uarfcn = int ( scanscs . Uarfcn . Int64 ) scs . Latitude = scanscs . Latitude . Float64 scs . Longitude = scanscs . Longitude . Float64 return nil }
FromRows scans the sql response data into SurveyCellScan.
FromRows scans the sql response data into SurveyCellScan .
// the order here should be the same as in the `surveycellscan.Columns`.