Clients that use the AST store likely will want to have their triggers passed AST data too. This is currently not possible, as triggers that run on the AST store will be served data piped via ast.ValueToInterface. In addition to likely not being what the client wants, this comes with a potentially big performance impact.
The Register
(trigger) function on the store already allows passing a TriggerConfig
which currently only contains an OnCommit
function option. I suggest we add a new field here to set the desired data format passed to trigger functions.