MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / ParseDInterval

Function ParseDInterval

pkg/sql/sem/tree/datum.go:3150–3152  ·  view source on GitHub ↗

ParseDInterval parses and returns the *DInterval Datum value represented by the provided string, or an error if parsing is unsuccessful.

(style duration.IntervalStyle, s string)

Source from the content-addressed store, hash-verified

3148// ParseDInterval parses and returns the *DInterval Datum value represented by the provided
3149// string, or an error if parsing is unsuccessful.
3150func ParseDInterval(style duration.IntervalStyle, s string) (*DInterval, error) {
3151 return ParseDIntervalWithTypeMetadata(style, s, types.DefaultIntervalTypeMetadata)
3152}
3153
3154// truncateInterval truncates the input interval downward to the nearest
3155// interval quantity specified by the DurationField input.

Callers 1

SampleDatumFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…