MCPcopy Create free account
hub / github.com/dolthub/doltgresql / ParseDInterval

Function ParseDInterval

postgres/parser/sem/tree/datum.go:1149–1151  ·  view source on GitHub ↗

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

(s string)

Source from the content-addressed store, hash-verified

1147// ParseDInterval parses and returns the *DInterval Datum value represented by the provided
1148// string, or an error if parsing is unsuccessful.
1149func ParseDInterval(s string) (*DInterval, error) {
1150 return ParseDIntervalWithTypeMetadata(s, types.DefaultIntervalTypeMetadata)
1151}
1152
1153// truncateDInterval truncates the input DInterval downward to the nearest
1154// interval quantity specified by the DurationField input.

Callers 2

interval.goFile · 0.92
SampleDatumFunction · 0.85

Calls 1

Tested by

no test coverage detected