(ctx context.Context, id int)
| 95 | } |
| 96 | |
| 97 | func (s *UserStore) FindByID(ctx context.Context, id int) (user User, err error) { |
| 98 | user.ID = int64(id) |
| 99 | err = s.db.Operator.Core.NewSelect().Model(&user).WherePK().Scan(ctx) |
| 100 | return |
| 101 | } |
| 102 | |
| 103 | func (s *UserStore) Update(ctx context.Context, user *User) (err error) { |
| 104 | err = assertAffectedOneRow(s.db.Operator.Core.NewUpdate(). |
no outgoing calls
no test coverage detected