package
0.0.0-20180218142241-442a4c8fd042
Repository: https://github.com/jclebreton/opensirene.git
Documentation: pkg.go.dev
# Functions
Do downloads and processes the sirene files.
FileTypeName returns the string representation of a FileType.
Grab can be used to grab the full dataset object.
GrabLatestFull retrieves all the files that needs to be downloaded and applied to the database in inverse order (stock first, then each daily file).
No description provided by the author
NewFromResource takes an Resource and transforms it to a gouv_sirene.RemoteFile.
# Constants
Defines the different filetype constants.
No description provided by the author
Defines the different filetype constants.
Defines the different filetype constants.
No description provided by the author
Defines the different filetype constants.
# Structs
CSVImport is a struct helper to import a CSV file to the database It implementes the pgx.Copy interface.
RemoteFile is a struct that adds and remove some fields from a Resource struct and actually keep only useful fields.
# Type aliases
FileType is the main representation for the filetype.
RemoteFiles is a slice of pointers to RemoteFile.