Documentation
¶
Overview ¶
Package apipurge contains internal implementation for FeedPurge
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FeedPurge ¶ added in v0.6.0
func FeedPurge(m *apptypes.MobsqlRuntime, feedIDs []int, purgeTablesOption PurgeTablesOption) (*apptypes.FeedOpResult, error)
FeedPurge removes from the database the given feedIDs. There are two different types of tables that can be cleared as determined by the PurgeTablesOption.
If PurgeTablesOption is set to PurgeTablesOptionGTFS then only GTFS tables will be cleared. Alternatively PurgeTablesOptionComputed clears computed tables. And PurgeTablesOptionAll clears both GTFS & computed tables for the feed IDs.
Types ¶
type PurgeTablesOption ¶ added in v0.5.0
type PurgeTablesOption int
PurgeTablesOption enumerates the options for purging used by FeedPurge
const PurgeTablesOptionAll PurgeTablesOption = 0
PurgeTablesOptionAll purges all tables
const PurgeTablesOptionComputed PurgeTablesOption = 2
PurgeTablesOptionGTFS purges user-defined computed tables
const PurgeTablesOptionGTFS PurgeTablesOption = 1
PurgeTablesOptionGTFS purges GTFS-related tables