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

Method AsSet

postgres/parser/pgdate/fields.go:61–63  ·  view source on GitHub ↗

AsSet returns a singleton set containing the field.

()

Source from the content-addressed store, hash-verified

59
60// AsSet returns a singleton set containing the field.
61func (f field) AsSet() fieldSet {
62 return 1 << f
63}
64
65// Pretty wraps the generated String() function to return only the
66// name: "Year" vs "fieldYear".

Callers 4

newFieldSetFunction · 0.80
AddMethod · 0.80
ClearMethod · 0.80
HasMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected