EventBus
Inherits /tmp/tmp.BeFPNK/src/src/eventbus/listener.cr::EventBusDBFuncs < /tmp/tmp.BeFPNK/src/src/eventbus/listener.cr::EventBusLogger < Reference < Object
Constants
Constructors
Instance methods
add_handler(*handler : EventHandler)
Sourceclose
SourceNo-op unless force is set: the CDC trigger is shared infrastructure that other
services rely on, and dropping it takes an ACCESS EXCLUSIVE lock that queues every
read on the table behind it. Pass force: true only to genuinely uninstall.
ensure_cdc_for_all_tables
Sourceon_error(handler : ErrHandlerType -> )
Sourceremove_handler(*handler : EventHandler)
Sourcereplace_cdc_update_policy(table : String, ignore_update_columns : Array(String), expected_ignore_update_columns : Array(String)) : Bool
Replace a shared table policy only if the installed policy matches the expectation.
run
Sourcestart
Sourcetask_runner
Source