Skip to content

Enable

Enable projections.

enable_projection(stub, name, **kwargs)

Enables a projection.

Source code in src/eventstore_grpc/projections/enable.py
def enable_projection(
    stub: projections_pb2_grpc.ProjectionsStub, name: str, **kwargs
) -> projections_pb2.DisableResp:
    """Enables a projection."""
    request = projections_pb2.EnableReq()
    options = projections_pb2.EnableReq.Options()
    options.name = name
    request.options.CopyFrom(options)
    response = stub.Enable(request, **kwargs)
    return response