Selecto.Builder.Retarget (Selecto v0.4.5)

Copy Markdown

SQL generation logic for Retarget functionality.

This module handles the construction of SQL queries that retarget from the source table to a target table while preserving existing filters through subqueries.

Summary

Functions

Build the join chain subquery for connecting source to target.

Extract retarget conditions from existing filters to construct the subquery.

Functions

build_join_chain_subquery(selecto, retarget_config, join_path)

Build the join chain subquery for connecting source to target.

build_retarget_query(selecto, opts \\ [])

@spec build_retarget_query(
  Selecto.Types.t(),
  keyword()
) :: Selecto.Types.builder_result()

extract_retarget_conditions(selecto, retarget_config, source_alias)

Extract retarget conditions from existing filters to construct the subquery.