io.stargate.bridge.proto.StargateBridge Maven / Gradle / Ivy
package io.stargate.bridge.proto;
import io.quarkus.grpc.MutinyService;
@jakarta.annotation.Generated(value = "by Mutiny Grpc generator", comments = "Source: bridge.proto")
public interface StargateBridge extends MutinyService {
/**
*
* Executes a single CQL query.
*
*/
io.smallrye.mutiny.Uni executeQuery(io.stargate.bridge.proto.QueryOuterClass.Query request);
/**
*
* Executes a single CQL query, assuming that a keyspace with the given version hash exists on the
* bridge side.
* This is an optimization when the client builds a query based on a keyspace's contents: with
* this operation, it can use its local version of the keyspace (therefore avoiding an extra
* network hop to fetch it), and execute the query optimistically. If the keyspace has changed,
* the bridge will reply with the new version, allowing the client to retry.
*
*/
io.smallrye.mutiny.Uni executeQueryWithSchema(io.stargate.bridge.proto.Schema.QueryWithSchema request);
/**
*
* Executes a batch of CQL queries.
*
*/
io.smallrye.mutiny.Uni executeBatch(io.stargate.bridge.proto.QueryOuterClass.Batch request);
/**
*
* Similar to CQL "DESCRIBE KEYSPACE".
* Note that this operation does not perform any authorization check. The rationale is that, most
* of the time, client services use schema metadata to build another query that will be
* immediately executed with `ExecuteQuery` (which does check authorization).
* If that is not the case (e.g. you return the metadata directly to the client), you can check
* authorization explicitly with `AuthorizeSchemaReads`.
*
*/
io.smallrye.mutiny.Uni describeKeyspace(io.stargate.bridge.proto.Schema.DescribeKeyspaceQuery request);
/**
*
* Checks whether the client is authorized to describe one or more schema elements.
*
*/
io.smallrye.mutiny.Uni authorizeSchemaReads(io.stargate.bridge.proto.Schema.AuthorizeSchemaReadsRequest request);
/**
*
* Checks which features are supported by the persistence backend.
*
*/
io.smallrye.mutiny.Uni getSupportedFeatures(io.stargate.bridge.proto.Schema.SupportedFeaturesRequest request);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy