Skip to main content

Module discover

Module discover 

Source
Expand description

Singer catalog discovery: run <tap> --config <tmp> --discover and return the catalog it prints. Used by faucet init --source singer --discover.

Structs§

StreamSelection
Result of select_streams: the rewritten catalog plus what was selected and any warnings the caller should surface to the user.

Functions§

catalog_stream_ids
Extract the stream ids from a Singer catalog (tap_stream_id, falling back to stream), in catalog order.
discover
Run the tap in discovery mode and parse its stdout as a Singer catalog.
select_streams
Mark target — and any parent streams inferable from the catalog — as selected, returning the rewritten catalog.