Get returns a CASMapping entity by its id.
(ctx context.Context, id uuid.UUID)
| 957 | |
| 958 | // Get returns a CASMapping entity by its id. |
| 959 | func (c *CASMappingClient) Get(ctx context.Context, id uuid.UUID) (*CASMapping, error) { |
| 960 | return c.Query().Where(casmapping.ID(id)).Only(ctx) |
| 961 | } |
| 962 | |
| 963 | // GetX is like Get, but panics if an error occurs. |
| 964 | func (c *CASMappingClient) GetX(ctx context.Context, id uuid.UUID) *CASMapping { |