Get returns a Alert entity by its id.
(ctx context.Context, id int)
| 383 | |
| 384 | // Get returns a Alert entity by its id. |
| 385 | func (c *AlertClient) Get(ctx context.Context, id int) (*Alert, error) { |
| 386 | return c.Query().Where(alert.ID(id)).Only(ctx) |
| 387 | } |
| 388 | |
| 389 | // GetX is like Get, but panics if an error occurs. |
| 390 | func (c *AlertClient) GetX(ctx context.Context, id int) *Alert { |