Skip to main content

Crate picodata_driver

Crate picodata_driver 

Source

Structs§

Client
Client which is used to query picodata.
Config
Picodata config
IncompleteBucketMap
Details of Error::IncompleteBucketMap.
Instance
An instance of a replicaset.
PinnedQuery
Request pinned to one instance, returned by Query::instance. It takes neither .on_master nor .bucket_id:
Query
Request builder returned by Client::query and Client::execute.
Random
Returns random index element within it’s collection len.
Replicaset
A replicaset with its instances and the buckets it owns.
RoundRobin
Returns next index element within it’s collection len.
RoutedQuery
Request routed by .on_master or .bucket_id, returned by Query::on_master and Query::bucket_id. It takes no .instance:
Tier
A tier with its replicasets.
Topology
Cluster topology: tiers with their replicasets and bucket ranges.

Enums§

Error
Picodata error.

Traits§

Strategy
Wildcard strategy definition.

Functions§

clone_pg_config
Clones a pg::Config preserving auth and TLS settings but resetting host/port.
connect
Creates a picodata Client
connect_cfg
Creates a picodata Client

Type Aliases§

BoxStrategy
Boxed strategy alias.
BucketMap
Bucket ranges of a tier by the UUID of the replicaset owning them.