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

Function as_of_both_clauses

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

Source from the content-addressed store, hash-verified

520
521 #[test]
522 fn as_of_both_clauses() {
523 let ex = extract(
524 "SELECT * FROM array_slice('g', '{}') AS OF SYSTEM TIME 500 AS OF VALID TIME 250",
525 )
526 .unwrap()
527 .unwrap();
528 assert_eq!(ex.temporal.system_as_of_ms, Some(500));
529 assert_eq!(ex.temporal.valid_time, ValidTime::At(250));
530 }
531
532 #[test]
533 fn as_of_system_time_now() {

Callers

nothing calls this directly

Calls 1

extractFunction · 0.85

Tested by

no test coverage detected