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

Function scope_local

nodedb-sql/src/ddl_ast/parse/schedule.rs:215–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213
214 #[test]
215 fn scope_local() {
216 let sql = "CREATE SCHEDULE gc CRON '0 * * * *' SCOPE LOCAL AS BEGIN RETURN; END";
217 if let NodedbStatement::Automation(AutomationStmt::CreateSchedule { scope, .. }) =
218 create(sql)
219 {
220 assert_eq!(scope, "LOCAL");
221 } else {
222 panic!("expected CreateSchedule");
223 }
224 }
225
226 #[test]
227 fn with_options() {

Callers

nothing calls this directly

Calls 1

createFunction · 0.70

Tested by

no test coverage detected