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

Function MustMakeDTimestampTZ

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

MustMakeDTimestampTZ wraps MakeDTimestampTZ but panics if there is an error. This is intended for testing applications only.

(t time.Time, precision time.Duration)

Source from the content-addressed store, hash-verified

1079// MustMakeDTimestampTZ wraps MakeDTimestampTZ but panics if there is an error.
1080// This is intended for testing applications only.
1081func MustMakeDTimestampTZ(t time.Time, precision time.Duration) *DTimestampTZ {
1082 ret, err := MakeDTimestampTZ(t, precision)
1083 if err != nil {
1084 panic(err)
1085 }
1086 return ret
1087}
1088
1089// ParseDTimestampTZ parses and returns the *DTimestampTZ Datum value represented by
1090// the provided string in the provided location, or an error if parsing is unsuccessful.

Callers 1

SampleDatumFunction · 0.85

Calls 1

MakeDTimestampTZFunction · 0.85

Tested by

no test coverage detected