1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Most common usage:
//!
//! ```
//! use pancake_db_client::{Client, make_partition, make_row};
//! use pancake_db_idl::dml::{WriteToPartitionRequest, WriteToPartitionResponse};
//! # use pancake_db_client::errors::ClientError;
//!
//! # async { // we don't actually run this in the test, only compile
//! let mut client = Client::connect("http://localhost:3842").await?;
//! let req = WriteToPartitionRequest {
//! table_name: "my_table".to_string(),
//! partition: make_partition! {
//! "string_partition_col" => "my_partition_value".to_string(),
//! },
//! rows: vec![
//! make_row! {
//! "bool_col" => false,
//! "f32_col" => 1.1_f32,
//! }
//! ],
//! };
//! let resp: WriteToPartitionResponse = client.write_to_partition(req).await?;
//! # Ok::<(), ClientError>(())
//! # };
//! ```
//!
//! See [`Client`] for more details.
pub use SegmentKey;
pub use new_correlation_id;
pub use Client;