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

@ -206,6 +206,16 @@ impl Database {
self.executor.timestamp()
}
/// Returns the current auth.origin session context if configured
pub fn auth_origin(&self) -> Result<Option<Value>, String> {
self.executor.auth_origin()
}
/// Returns the current punc.name session context if configured
pub fn punc_trigger(&self) -> Result<Option<String>, String> {
self.executor.punc_trigger()
}
pub fn compile(&mut self, errors: &mut Vec<crate::drop::Error>) {
// Phase 1: Registration
self.collect_schemas(errors);