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

Function ParseDInterval

pkg/sql/sem/tree/datum.go:2512–2514  ·  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

2510// ParseDInterval parses and returns the *DInterval Datum value represented by the provided
2511// string, or an error if parsing is unsuccessful.
2512func ParseDInterval(s string) (*DInterval, error) {
2513 return ParseDIntervalWithTypeMetadata(s, types.DefaultIntervalTypeMetadata)
2514}
2515
2516// truncateDInterval truncates the input DInterval downward to the nearest
2517// interval quantity specified by the DurationField input.

Callers 3

ParseMethod · 0.92
DatumToHLCFunction · 0.85
SampleDatumFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…