(ctx context.Context, id string)
| 925 | } |
| 926 | |
| 927 | func (c *connection) DeleteUser(ctx context.Context, id string) error { |
| 928 | res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM users WHERE id=$1", id) |
| 929 | return checkDeleteRow("user", res, err) |
| 930 | } |
| 931 | |
| 932 | func (c *connection) UpdateUser(ctx context.Context, id string, opts *database.UpdateUserOptions) (*database.User, error) { |
| 933 | if err := database.Validate(opts); err != nil { |
nothing calls this directly
no test coverage detected