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

Function statement_granularity

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

Source from the content-addressed store, hash-verified

385
386 #[test]
387 fn statement_granularity() {
388 let sql = "CREATE TRIGGER t AFTER INSERT ON c FOR EACH STATEMENT BEGIN END";
389 if let NodedbStatement::Automation(AutomationStmt::CreateTrigger { granularity, .. }) =
390 create(sql)
391 {
392 assert_eq!(granularity, "STATEMENT");
393 } else {
394 panic!("expected CreateTrigger");
395 }
396 }
397
398 #[test]
399 fn with_priority() {

Callers

nothing calls this directly

Calls 1

createFunction · 0.70

Tested by

no test coverage detected