Get returns a Event entity by its id.
(ctx context.Context, id int)
| 1293 | |
| 1294 | // Get returns a Event entity by its id. |
| 1295 | func (c *EventClient) Get(ctx context.Context, id int) (*Event, error) { |
| 1296 | return c.Query().Where(event.ID(id)).Only(ctx) |
| 1297 | } |
| 1298 | |
| 1299 | // GetX is like Get, but panics if an error occurs. |
| 1300 | func (c *EventClient) GetX(ctx context.Context, id int) *Event { |