importer

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateFeedVersion

func ActivateFeedVersion(ctx context.Context, atx tldb.Adapter, feedId int, fvid int) error

ActivateFeedVersion .

func DeleteFeedVersion

func DeleteFeedVersion(ctx context.Context, atx tldb.Adapter, id int, extraTables []string) error

func UnimportFeedVersion

func UnimportFeedVersion(ctx context.Context, 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(ctx context.Context, 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 Options

type Options struct {
	FeedVersionID int
	Storage       string
	Activate      bool
	copier.Options
}

Options sets various options for importing a feed.

type Result

type Result struct {
	FeedVersionImport dmfr.FeedVersionImport
}

Result contains the results of a feed import.

func ImportFeedVersion

func ImportFeedVersion(ctx context.Context, adapter tldb.Adapter, opts Options) (Result, error)

ImportFeedVersion create FVI and run Copier inside a Tx.

func MainImportFeedVersion

func MainImportFeedVersion(ctx context.Context, adapter tldb.Adapter, opts Options) (Result, error)

Jump to

Keyboard shortcuts

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