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

Method parse

src/pgtz/src/timezone.rs:45–47  ·  view source on GitHub ↗
(tz: &str, spec: TimezoneSpec)

Source from the content-addressed store, hash-verified

43
44impl Timezone {
45 pub fn parse(tz: &str, spec: TimezoneSpec) -> Result<Self, String> {
46 build_timezone_offset_second(&tokenize_timezone(tz)?, tz, spec)
47 }
48}
49
50// We need to implement Serialize and Deserialize traits to include Timezone in the UnaryFunc enum.

Callers 6

openMethod · 0.45
decode_binaryMethod · 0.45
innerFunction · 0.45
parse_numFunction · 0.45
get_pg_major_versionFunction · 0.45

Calls 2

tokenize_timezoneFunction · 0.85

Tested by 1