ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 1063 | |
| 1064 | // ExecX is like Exec, but panics if an error occurs. |
| 1065 | func (u *MachineUpsertOne) ExecX(ctx context.Context) { |
| 1066 | if err := u.create.Exec(ctx); err != nil { |
| 1067 | panic(err) |
| 1068 | } |
| 1069 | } |
| 1070 | |
| 1071 | // Exec executes the UPSERT query and returns the inserted/updated ID. |
| 1072 | func (u *MachineUpsertOne) ID(ctx context.Context) (id int, err error) { |