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

Function valid_time_contains

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

Source from the content-addressed store, hash-verified

441
442 #[test]
443 fn valid_time_contains() {
444 let ex = extract("SELECT * FROM t FOR VALID_TIME CONTAINS 250")
445 .unwrap()
446 .unwrap();
447 assert_eq!(ex.temporal.valid_time, ValidTime::At(250));
448 assert!(!ex.sql.to_uppercase().contains("FOR VALID_TIME"));
449 }
450
451 #[test]
452 fn valid_time_range() {

Callers

nothing calls this directly

Calls 1

extractFunction · 0.85

Tested by

no test coverage detected