Documentation
¶
Overview ¶
Package ioexport implements the Exporter interface for exporting PostgreSQL gnames data to SFGA SQLite format files. This is an impure I/O package that reads from PostgreSQL and writes SFGA archives.
Index ¶
- func AllSourcesFailedError(count int) error
- func CompanionYAMLError(path string, err error) error
- func New(cfg *config.Config, op db.Operator) gndb.Exporter
- func NoSourcesError(requestedIDs []int) error
- func NotConnectedError() error
- func OutputDirError(dir string, err error) error
- func SFGACreateError(sourceID int, err error) error
- func SFGAWriteError(sourceID int, stage string, err error) error
- func WorkDirError(sourceID int, err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllSourcesFailedError ¶
AllSourcesFailedError creates an error for when all sources fail to export.
func CompanionYAMLError ¶
CompanionYAMLError creates an error for when the companion .yaml file cannot be written alongside the exported SFGA archive.
func NoSourcesError ¶
NoSourcesError creates an error for when no sources are found in the data_sources table.
func NotConnectedError ¶
func NotConnectedError() error
NotConnectedError creates an error for when export operation is attempted without database connection.
func OutputDirError ¶
OutputDirError creates an error for when the output directory cannot be created or accessed.
func SFGACreateError ¶
SFGACreateError creates an error for when the SFGA archive cannot be created.
func SFGAWriteError ¶
SFGAWriteError creates an error for when data cannot be written to the SFGA archive.
func WorkDirError ¶
WorkDirError creates an error for when the temporary work directory for a source cannot be created or cleared.
Types ¶
This section is empty.