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

Function system_time_as_of

nodedb-sql/src/parser/preprocess/temporal.rs:432–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

430
431 #[test]
432 fn system_time_as_of() {
433 let ex = extract("SELECT * FROM t FOR SYSTEM_TIME AS OF 100 WHERE x = 1")
434 .unwrap()
435 .unwrap();
436 assert_eq!(ex.temporal.system_as_of_ms, Some(100));
437 assert_eq!(ex.temporal.valid_time, ValidTime::Any);
438 assert!(!ex.sql.to_uppercase().contains("FOR SYSTEM_TIME"));
439 assert!(ex.sql.contains("WHERE x = 1"));
440 }
441
442 #[test]
443 fn valid_time_contains() {

Callers

nothing calls this directly

Calls 1

extractFunction · 0.85

Tested by

no test coverage detected