(_ context.Context)
| 543 | } |
| 544 | |
| 545 | func (s *sqlDatabase) ListAllInstances(_ context.Context) ([]params.Instance, error) { |
| 546 | ret, err := s.listInstancesBatched(nil) |
| 547 | if err != nil { |
| 548 | return nil, fmt.Errorf("failed to list all instances: %w", err) |
| 549 | } |
| 550 | return ret, nil |
| 551 | } |
| 552 | |
| 553 | func (s *sqlDatabase) PoolInstanceCount(_ context.Context, poolID string) (int64, error) { |
| 554 | pool, err := s.getPoolByID(s.conn, poolID) |
nothing calls this directly
no test coverage detected