MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / User

Method User

pkg/sql/sessiondatapb/session_data.go:101–103  ·  view source on GitHub ↗

User retrieves the current user.

()

Source from the content-addressed store, hash-verified

99
100// User retrieves the current user.
101func (s *SessionData) User() username.SQLUsername {
102 return s.UserProto.Decode()
103}
104
105// SystemIdentity retrieves the session's system identity.
106// (Identity presented by the client prior to identity mapping.)

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.65

Tested by

no test coverage detected