[][src]Struct scylla::statement::prepared_statement::PreparedStatement

pub struct PreparedStatement { /* fields omitted */ }

Represents a statement prepared on the server.

Implementations

impl PreparedStatement[src]

pub fn new(id: Bytes, metadata: PreparedMetadata, statement: String) -> Self[src]

pub fn get_id(&self) -> &Bytes[src]

pub fn get_statement(&self) -> &str[src]

pub fn set_page_size(&mut self, page_size: i32)[src]

Sets the page size for this CQL query.

pub fn disable_paging(&mut self)[src]

Disables paging for this CQL query.

pub fn get_page_size(&self) -> Option<i32>[src]

Returns the page size for this CQL query.

pub fn compute_partition_key(&self, bound_values: &[Value]) -> Bytes[src]

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

Trait Implementations

impl Clone for PreparedStatement[src]

impl Debug for PreparedStatement[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]