Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // RepoURL is the URL to the SFGA schema repository. RepoURL string // RepoPath is a temporary location to schema files downloaded from GitHub. RepoPath string // RepoTag is a tag of the SFGA repository to use. RepoTag string // RootPath is the root path for all temporary files. RootPath string // DBPath is the path SFGA database. DBPath string // DumpPath is the path to store the resulting sqlite file with data. DumpPath string // JobsNum is the number of concurrent jobs to run. JobsNum int // BatchSize is the number of records to insert in one transaction. BatchSize int // InMemory is a flag to use in-memory sqlite database. InMemory bool }
Config is a configuration object for the Darwin Core Archive (DwCA) data processing.
type Option ¶
type Option func(*Config)
Option is a function type that allows to standardize how options to the configuration are organized.
func OptDumpPath ¶
OptDumpPath sets the path to store resulting sqlite file with data imported from DwCA file.
func OptInMemory ¶
OptInMemory sets the flag to use in-memory sqlite database.
func OptJobsNum ¶
OptJobsNum sets the number of concurrent jobs to run.
func OptRootPath ¶
OptRootPath sets the root path for all temporary files.
func OptSchemaPath ¶
OptSchemaPath sets the path to store the sqlite schema file.
Click to show internal directories.
Click to hide internal directories.