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

Method HasFlags

pkg/sql/lex/encode.go:49–51  ·  view source on GitHub ↗

HasFlags tests whether the given flags are set.

(subset EncodeFlags)

Source from the content-addressed store, hash-verified

47
48// HasFlags tests whether the given flags are set.
49func (f EncodeFlags) HasFlags(subset EncodeFlags) bool {
50 return f&subset == subset
51}
52
53const (
54 // 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