Get returns a AllowList entity by its id.
(ctx context.Context, id int)
| 580 | |
| 581 | // Get returns a AllowList entity by its id. |
| 582 | func (c *AllowListClient) Get(ctx context.Context, id int) (*AllowList, error) { |
| 583 | return c.Query().Where(allowlist.ID(id)).Only(ctx) |
| 584 | } |
| 585 | |
| 586 | // GetX is like Get, but panics if an error occurs. |
| 587 | func (c *AllowListClient) GetX(ctx context.Context, id int) *AllowList { |