MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_interval

Function parse_interval

src/repr/src/strconv.rs:542–544  ·  view source on GitHub ↗

parse ```text ::= [ ] { | } ::= [ ] | ::= | ::= [ [ [ ] ] ] ::= <hours va

(s: &str)

Source from the content-addressed store, hash-verified

540/// | <seconds value>
541/// ```
542pub fn parse_interval(s: &str) -> Result<Interval, ParseError> {
543 parse_interval_w_disambiguator(s, None, DateTimeField::Second)
544}
545
546/// Parse an interval string, using an optional leading precision for time (H:M:S)
547/// and a specific mz_sql_parser::ast::DateTimeField to identify ambiguous elements.

Callers 9

cast_string_to_intervalFunction · 0.85
decode_textMethod · 0.85
decode_text_into_rowMethod · 0.85
try_from_valueMethod · 0.85
from_strMethod · 0.85
evalMethod · 0.85

Calls 1