(ctx context.Context, uuid string)
| 99 | ` |
| 100 | |
| 101 | func (q *Queries) GetSession(ctx context.Context, uuid string) (Session, error) { |
| 102 | row := q.db.QueryRowContext(ctx, getSession, uuid) |
| 103 | var i Session |
| 104 | err := row.Scan( |
| 105 | &i.UUID, |
| 106 | &i.Username, |
| 107 | &i.Email, |
| 108 | &i.Name, |
| 109 | &i.Provider, |
| 110 | &i.TotpPending, |
| 111 | &i.OAuthGroups, |
| 112 | &i.Expiry, |
| 113 | &i.CreatedAt, |
| 114 | &i.OAuthName, |
| 115 | &i.OAuthSub, |
| 116 | ) |
| 117 | return i, err |
| 118 | } |
| 119 | |
| 120 | const updateSession = `-- name: UpdateSession :one |
| 121 | UPDATE "sessions" SET |
no test coverage detected