Query returns a query builder for Alert.
()
| 374 | |
| 375 | // Query returns a query builder for Alert. |
| 376 | func (c *AlertClient) Query() *AlertQuery { |
| 377 | return &AlertQuery{ |
| 378 | config: c.config, |
| 379 | ctx: &QueryContext{Type: TypeAlert}, |
| 380 | inters: c.Interceptors(), |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | // Get returns a Alert entity by its id. |
| 385 | func (c *AlertClient) Get(ctx context.Context, id int) (*Alert, error) { |