Get returns a File entity by its id.
(ctx context.Context, id int)
| 912 | |
| 913 | // Get returns a File entity by its id. |
| 914 | func (c *FileClient) Get(ctx context.Context, id int) (*File, error) { |
| 915 | return c.Query().Where(file.ID(id)).Only(ctx) |
| 916 | } |
| 917 | |
| 918 | // GetX is like Get, but panics if an error occurs. |
| 919 | func (c *FileClient) GetX(ctx context.Context, id int) *File { |