Gets a specific collection using the gRPC server.
(stub, collection_id)
| 87 | |
| 88 | |
| 89 | def get_collection(stub, collection_id): |
| 90 | """Gets a specific collection using the gRPC server.""" |
| 91 | try: |
| 92 | request = vector_service.GetCollectionRequest(id=collection_id) |
| 93 | return stub.GetCollection(request) |
| 94 | except grpc.RpcError as e: |
| 95 | print(f"Error getting collection: {e.details()}") |
| 96 | raise |
| 97 | |
| 98 | |
| 99 | def delete_collection(stub, collection_id): |
no outgoing calls
no test coverage detected