rics.translation.fetching.support#

Supporting functions for implementations.

Functions

select_placeholders(instr, known_placeholders)

Select from a subset of known placeholders.

select_placeholders(instr: FetchInstruction[SourceType, IdType], known_placeholders: Collection[str]) List[str][source]#

Select from a subset of known placeholders.

Parameters
  • instr – Instruction object with placeholders.

  • known_placeholders – A collection of known placeholders.

Returns

As many known placeholders from instr as possible.