Module scylla_rs::app::access[][src]

Access traits and helpers for constructing and executing queries

Structs

BatchCollector

A batch collector, used to collect statements and build a BatchRequest. Access queries are defined by access traits (Insert, Delete, Update) and qualified for use in a Batch via batch traits ([InsertBatch], [DeleteBatch], [UpdateBatch])

BatchRequest

A Batch request, which can be used to send queries to the Ring. Stores a map of prepared statement IDs that were added to the batch so that the associated statements can be re-prepared if necessary.

DecodeResult

A synchronous marker type returned when sending a query to the Ring. Provides the request’s type as well as an appropriate decoder which can be used once the response is received.

DecodeRows

A marker struct which holds types used for a query so that it may be decoded via RowsDecoder later

DecodeVoid

A marker struct which holds the keyspace type so that it may be decoded (checked for errors) via VoidDecoder later

DeleteRequest

A request to delete a record which can be sent to the ring

DeleteStatement

A marker specifically for Delete statements

InsertRequest

A request to insert a record which can be sent to the ring

InsertStatement

A marker specifically for Insert statements

SelectRequest

A request to select a record which can be sent to the ring

UpdateRequest

A request to update a record which can be sent to the ring

UpdateStatement

A marker specifically for Update statements

Traits

AnyStatement

An aggregation trait which defines a statement marker of any type

Batchable

Defines a helper method to allow keyspaces to begin constructing a batch

ComputeToken

Defines a computed token for a key type

CreateRequest

Create request from cql frame

Delete

Delete query trait which creates a DeleteRequest that can be sent to the Ring.

GetDeleteRequest

Defines a helper method to specify the Value type expected by the Delete trait.

GetDeleteStatement

Defines two helper methods to specify statement / id

GetInsertRequest

Wrapper for the Insert trait which provides the insert function

GetInsertStatement

Defines two helper methods to specify statement / id

GetSelectRequest

Defines a helper method to specify the Value type expected by the Select trait.

GetSelectStatement

Defines two helper methods to specify statement / id

GetUpdateRequest

Wrapper for the Update trait which provides the update function

GetUpdateStatement

Defines two helper methods to specify statement / id

Insert

Insert query trait which creates an InsertRequest that can be sent to the Ring.

Keyspace

Represents a Scylla Keyspace which holds a set of tables and queries on those tables.

Request

Unifying trait for requests which defines shared functionality

Select

Select query trait which creates a SelectRequest that can be sent to the Ring.

Statement

A marker trait which holds dynamic types for a statement to be retrieved from a keyspace

Update

Update query trait which creates an UpdateRequest that can be sent to the Ring.

Functions

send_global

Send a global request to the Ring

send_local

Send a local request to the Ring