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

Function as_of_system_time_iso8601

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

Source from the content-addressed store, hash-verified

508
509 #[test]
510 fn as_of_system_time_iso8601() {
511 let ex = extract(
512 "SELECT * FROM array_slice('g', '{}') AS OF SYSTEM TIME '2024-01-15T00:00:00Z'",
513 )
514 .unwrap()
515 .unwrap();
516 // 2024-01-15T00:00:00Z in ms
517 assert_eq!(ex.temporal.system_as_of_ms, Some(1_705_276_800_000));
518 assert!(!ex.sql.to_uppercase().contains("AS OF SYSTEM TIME"));
519 }
520
521 #[test]
522 fn as_of_both_clauses() {

Callers

nothing calls this directly

Calls 1

extractFunction · 0.85

Tested by

no test coverage detected