ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 775 | |
| 776 | // ExecX is like Exec, but panics if an error occurs. |
| 777 | func (u *NodeUpsertOne) ExecX(ctx context.Context) { |
| 778 | if err := u.create.Exec(ctx); err != nil { |
| 779 | panic(err) |
| 780 | } |
| 781 | } |
| 782 | |
| 783 | // Exec executes the UPSERT query and returns the inserted/updated ID. |
| 784 | func (u *NodeUpsertOne) ID(ctx context.Context) (id int, err error) { |