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

Function with_priority

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

Source from the content-addressed store, hash-verified

397
398 #[test]
399 fn with_priority() {
400 let sql = "CREATE TRIGGER t AFTER INSERT ON c FOR EACH ROW PRIORITY 10 BEGIN END";
401 if let NodedbStatement::Automation(AutomationStmt::CreateTrigger { priority, .. }) =
402 create(sql)
403 {
404 assert_eq!(priority, 10);
405 } else {
406 panic!("expected CreateTrigger");
407 }
408 }
409}

Callers

nothing calls this directly

Calls 1

createFunction · 0.70

Tested by

no test coverage detected