(ctx context.Context, arg UpdateSessionParams)
| 146 | } |
| 147 | |
| 148 | func (q *Queries) UpdateSession(ctx context.Context, arg UpdateSessionParams) (Session, error) { |
| 149 | row := q.db.QueryRowContext(ctx, updateSession, |
| 150 | arg.Username, |
| 151 | arg.Email, |
| 152 | arg.Name, |
| 153 | arg.Provider, |
| 154 | arg.TotpPending, |
| 155 | arg.OAuthGroups, |
| 156 | arg.Expiry, |
| 157 | arg.OAuthName, |
| 158 | arg.OAuthSub, |
| 159 | arg.UUID, |
| 160 | ) |
| 161 | var i Session |
| 162 | err := row.Scan( |
| 163 | &i.UUID, |
| 164 | &i.Username, |
| 165 | &i.Email, |
| 166 | &i.Name, |
| 167 | &i.Provider, |
| 168 | &i.TotpPending, |
| 169 | &i.OAuthGroups, |
| 170 | &i.Expiry, |
| 171 | &i.CreatedAt, |
| 172 | &i.OAuthName, |
| 173 | &i.OAuthSub, |
| 174 | ) |
| 175 | return i, err |
| 176 | } |
no test coverage detected