Get returns a Decision entity by its id.
(ctx context.Context, id int)
| 1144 | |
| 1145 | // Get returns a Decision entity by its id. |
| 1146 | func (c *DecisionClient) Get(ctx context.Context, id int) (*Decision, error) { |
| 1147 | return c.Query().Where(decision.ID(id)).Only(ctx) |
| 1148 | } |
| 1149 | |
| 1150 | // GetX is like Get, but panics if an error occurs. |
| 1151 | func (c *DecisionClient) GetX(ctx context.Context, id int) *Decision { |