Get returns a Bouncer entity by its id.
(ctx context.Context, id int)
| 878 | |
| 879 | // Get returns a Bouncer entity by its id. |
| 880 | func (c *BouncerClient) Get(ctx context.Context, id int) (*Bouncer, error) { |
| 881 | return c.Query().Where(bouncer.ID(id)).Only(ctx) |
| 882 | } |
| 883 | |
| 884 | // GetX is like Get, but panics if an error occurs. |
| 885 | func (c *BouncerClient) GetX(ctx context.Context, id int) *Bouncer { |