feat: propagate origin and trigger to cdc and changes

This commit is contained in:
2026-06-05 18:48:46 -04:00
parent 4cc5245336
commit 8c430d42e3
5 changed files with 88 additions and 2 deletions

View File

@ -20,6 +20,12 @@ pub trait DatabaseExecutor: Send + Sync {
/// Returns the current transaction timestamp
fn timestamp(&self) -> Result<String, String>;
/// Returns the current auth.origin session context if configured
fn auth_origin(&self) -> Result<Option<Value>, String>;
/// Returns the current punc.name session context if configured
fn punc_trigger(&self) -> Result<Option<String>, String>;
#[cfg(test)]
fn get_queries(&self) -> Vec<String>;