MergeIntoPolyfill.Builder behaviour (merge_into_polyfill v0.1.0-rc-0)
Link to this section Summary
Link to this section Types
Link to this type
data_source()
@type data_source() :: Ecto.Query.t() | MergeIntoPolyfill.Values.t()
Link to this type
merge_action()
@type merge_action() :: :insert | {:update, [{atom(), Ecto.Query.dynamic_expr()}]} | :delete | :nothing
Link to this type
when_clause()
@type when_clause() :: {:matched | :not_matched, Ecto.Query.dynamic_expr(), merge_action()}
Link to this section Callbacks
Link to this callback
build_plan(target_schema, on_clause, data_source, when_clauses, opts)
@callback build_plan( target_schema :: module(), on_clause :: Ecto.Query.dynamic_expr(), data_source(), when_clauses :: [when_clause()], opts :: keyword() ) :: Ecto.Multi.t()
Link to this section Functions
Link to this function