Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct { UnLoCode string Name string CountryCode string IsPort bool IsAirport bool IsTrainStation bool Latitude float64 Longitude float64 HasCoordinates bool }
func ProcessCSV ¶
func ProcessCSV(filePath string, metrics *SeederMetrics) ([]Location, error)
type SeederMetrics ¶
type SeederMetrics struct { TotalRecords int64 ValidCoordinates int64 InvalidCoordinates int64 SkippedRecords int ProcessingDuration time.Duration DatabaseDuration time.Duration BatchSize int }
func SeedLocations ¶
func SeedLocations(db *sql.DB, batchSize int) (*SeederMetrics, error)
Click to show internal directories.
Click to hide internal directories.