MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / GetUserGroupByID

Method GetUserGroupByID

internal/store/postgres/sqlcgen/usergroup.sql.go:49–59  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

47`
48
49func (q *Queries) GetUserGroupByID(ctx context.Context, id string) (UserGroup, error) {
50 row := q.db.QueryRow(ctx, getUserGroupByID, id)
51 var i UserGroup
52 err := row.Scan(
53 &i.ID,
54 &i.Name,
55 &i.Remark,
56 &i.InboundIds,
57 )
58 return i, err
59}
60
61const listUserGroupMembers = `-- name: ListUserGroupMembers :many
62SELECT user_id FROM user_group_members WHERE group_id = $1 ORDER BY user_id

Callers

nothing calls this directly

Calls 1

QueryRowMethod · 0.80

Tested by

no test coverage detected