MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / or_replace_sync

Function or_replace_sync

nodedb-sql/src/ddl_ast/parse/trigger.rs:353–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351
352 #[test]
353 fn or_replace_sync() {
354 let sql = "CREATE OR REPLACE SYNC TRIGGER t AFTER INSERT ON c FOR EACH ROW BEGIN END";
355 if let NodedbStatement::Automation(AutomationStmt::CreateTrigger {
356 or_replace,
357 execution_mode,
358 ..
359 }) = create(sql)
360 {
361 assert!(or_replace);
362 assert_eq!(execution_mode, "SYNC");
363 } else {
364 panic!("expected CreateTrigger");
365 }
366 }
367
368 #[test]
369 fn multi_event() {

Callers

nothing calls this directly

Calls 1

createFunction · 0.70

Tested by

no test coverage detected