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

Method HasFlags

postgres/parser/lex/encode.go:62–64  ·  view source on GitHub ↗

HasFlags tests whether the given flags are set.

(subset EncodeFlags)

Source from the content-addressed store, hash-verified

60
61// HasFlags tests whether the given flags are set.
62func (f EncodeFlags) HasFlags(subset EncodeFlags) bool {
63 return f&subset == subset
64}
65
66const (
67 // EncNoFlags indicates nothing special should happen while encoding.

Callers 3

EncodeSQLStringWithFlagsFunction · 0.45
EncodeRestrictedSQLIdentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected