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

Function IsStringType

postgres/parser/types/types.go:2385–2392  ·  view source on GitHub ↗

IsStringType returns true iff the given type is String or a collated string type.

(t *T)

Source from the content-addressed store, hash-verified

2383// IsStringType returns true iff the given type is String or a collated string
2384// type.
2385func IsStringType(t *T) bool {
2386 switch t.Family() {
2387 case StringFamily, CollatedStringFamily:
2388 return true
2389 default:
2390 return false
2391 }
2392}
2393
2394// IsDateTimeType returns true if the given type is a date or time-related type.
2395func IsDateTimeType(t *T) bool {

Callers 1

TypeCheckMethod · 0.92

Calls 1

FamilyMethod · 0.80

Tested by

no test coverage detected