Hi, I have a parent stream where each child stream...
# getting-started
j
Hi, I have a parent stream where each child stream is representing a different XML API call. I need to pass a different request to the parent from each child stream. Is this where the context field would be used? (i.e. get_child_context from the parent stream)
a
💬 Discussed in office hours 👍 From our discussion, generally it sounds like it may make sense to inheritance from a common base class, but each stream being a stream on its own without parent-child relationship. cc @ken_payne in case I mixed anything up. 😅
k
Perfect 👍 We also talked about making the "get changed table requests" either in each stream
get_records
to check if it is worth getting any records (possibly with file-based caching) or doing the check once in the
discover_streams
method of the Tap subclass and either filtering the list of streams returned, or passing details to the
__init__
of the stream class to use in
get_records
via
self
🙂