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

Function valid_time_range

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

Source from the content-addressed store, hash-verified

450
451 #[test]
452 fn valid_time_range() {
453 let ex = extract("SELECT * FROM t FOR VALID_TIME FROM 100 TO 300 LIMIT 10")
454 .unwrap()
455 .unwrap();
456 assert_eq!(ex.temporal.valid_time, ValidTime::Range(100, 300));
457 assert!(ex.sql.contains("LIMIT 10"));
458 }
459
460 #[test]
461 fn combined_system_and_valid() {

Callers

nothing calls this directly

Calls 1

extractFunction · 0.85

Tested by

no test coverage detected