GetX is like Get, but panics if an error occurs.
(ctx context.Context, id uuid.UUID)
| 962 | |
| 963 | // GetX is like Get, but panics if an error occurs. |
| 964 | func (c *CASMappingClient) GetX(ctx context.Context, id uuid.UUID) *CASMapping { |
| 965 | obj, err := c.Get(ctx, id) |
| 966 | if err != nil { |
| 967 | panic(err) |
| 968 | } |
| 969 | return obj |
| 970 | } |
| 971 | |
| 972 | // QueryCasBackend queries the cas_backend edge of a CASMapping. |
| 973 | func (c *CASMappingClient) QueryCasBackend(_m *CASMapping) *CASBackendQuery { |