Struct scylla::statement::prepared_statement::PreparedStatement [−][src]
Expand description
Represents a statement prepared on the server.
Fields
prepare_tracing_ids: Vec<Uuid>
Implementations
pub fn new(
id: Bytes,
metadata: PreparedMetadata,
statement: String,
page_size: Option<i32>
) -> Self
Sets the page size for this CQL query.
Disables paging for this CQL query.
Returns the page size for this CQL query.
Gets tracing ids of queries used to prepare this statement
pub fn compute_partition_key(
&self,
bound_values: &SerializedValues
) -> Result<Bytes, PartitionKeyError>
pub fn compute_partition_key(
&self,
bound_values: &SerializedValues
) -> Result<Bytes, PartitionKeyError>
Computes the partition key of the target table from given values Partition keys have a specific serialization rules. Ref: https://github.com/scylladb/scylla/blob/40adf38915b6d8f5314c621a94d694d172360833/compound_compat.hh#L33-L47
Returns the name of the keyspace this statement is operating on.
Sets the consistency to be used when executing this statement.
Gets the consistency to be used when executing this prepared statement if it is filled. If this is empty, the default_consistency of the session will be used.
Sets the serial consistency to be used when executing this statement. (Ignored unless the statement is an LWT)
Gets the serial consistency to be used when executing this statement. (Ignored unless the statement is an LWT)
Sets the idempotence of this statement
A query is idempotent if it can be applied multiple times without changing the result of the initial application
If set to true
we can be sure that it is idempotent
If set to false
it is unknown whether it is idempotent
This is used in RetryPolicy
to decide if retrying a query is safe
Gets the idempotence of this statement
Sets a custom RetryPolicy
to be used with this statement
By default Session’s retry policy is used, this allows to use a custom retry policy
Gets custom RetryPolicy
used by this statement
Enable or disable CQL Tracing for this statement If enabled session.execute() will return a QueryResult containing tracing_id which can be used to query tracing information about the execution of this query
Gets whether tracing is enabled for this statement
Sets the default timestamp for this statement in microseconds.
If not None, it will replace the server side assigned timestamp as default timestamp
If a statement contains a USING TIMESTAMP
clause, calling this method won’t change
anything
Gets the default timestamp for this statement in microseconds.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for PreparedStatement
impl Send for PreparedStatement
impl Sync for PreparedStatement
impl Unpin for PreparedStatement
impl !UnwindSafe for PreparedStatement
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more