MCPcopy Create free account
hub / github.com/cloudbase/garm / GetUserByID

Method GetUserByID

database/sql/users.go:113–119  ·  view source on GitHub ↗
(_ context.Context, userID string)

Source from the content-addressed store, hash-verified

111}
112
113func (s *sqlDatabase) GetUserByID(_ context.Context, userID string) (params.User, error) {
114 dbUser, err := s.getUserByID(s.conn, userID)
115 if err != nil {
116 return params.User{}, fmt.Errorf("error fetching user: %w", err)
117 }
118 return s.sqlToParamsUser(dbUser), nil
119}
120
121func (s *sqlDatabase) UpdateUser(_ context.Context, user string, param params.UpdateUserParams) (params.User, error) {
122 var err error

Callers

nothing calls this directly

Calls 2

getUserByIDMethod · 0.95
sqlToParamsUserMethod · 0.95

Tested by

no test coverage detected