unimporter

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnimportFeedVersion

func UnimportFeedVersion(atx tldb.Adapter, id int, extraTables []string) error

UnimportFeedVersion unimports a feed version and removes the feed_version_gtfs_import record.

func UnimportSchedule

func UnimportSchedule(atx tldb.Adapter, id int) error

UnimportSchedule removes schedule data for a feed version and updates the import record. stops, routes, agencies, pathways, levels are not affected. Note: calendars and calendar_dates MAY be deleted in future versions.

Types

type Command

type Command struct {
	ScheduleOnly bool
	ExtraTables  []string
	DryRun       bool
	FVIDs        []string
	FVSHA1       cli.ArrayFlags
	Extensions   cli.ArrayFlags
	FeedIDs      cli.ArrayFlags
	DBURL        string
	Workers      int
	Adapter      tldb.Adapter // allow for mocks
}

Command imports FeedVersions into a database.

func (*Command) Parse

func (cmd *Command) Parse(args []string) error

Parse command line flags

func (*Command) Run

func (cmd *Command) Run() error

Run this command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL