SearchAsh.Source.Transformers.AddSync (search_ash v0.1.0)

Copy Markdown View Source

Adds the create/update sync change and the destroy remove change, and forces require_atomic? false on every update/destroy action.

The sync change stems each row through a NIF, which cannot run inside an atomic SQL statement, so any update/destroy action that carries it must be non-atomic. We set that here rather than making each adopter remember it on every action — a working require_atomic? true action is impossible with this change anyway.

Summary

Functions

after?(_)

Callback implementation for Spark.Dsl.Transformer.after?/1.

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.