Query returns a query builder for Lock.
()
| 1433 | |
| 1434 | // Query returns a query builder for Lock. |
| 1435 | func (c *LockClient) Query() *LockQuery { |
| 1436 | return &LockQuery{ |
| 1437 | config: c.config, |
| 1438 | ctx: &QueryContext{Type: TypeLock}, |
| 1439 | inters: c.Interceptors(), |
| 1440 | } |
| 1441 | } |
| 1442 | |
| 1443 | // Get returns a Lock entity by its id. |
| 1444 | func (c *LockClient) Get(ctx context.Context, id int) (*Lock, error) { |
no test coverage detected