proton_client 0.1.2

Client for Timeplus Proton, a streaming SQL engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use proton_client::ProtonClient;

#[tokio::test]
async fn test_client() {
    let url = "https://api.proton.com";
    let client = ProtonClient::new(url);

    let _ = client.client().await;
}

#[tokio::test]
async fn test_url() {
    let url = "https://api.proton.com";
    let client = ProtonClient::new(url);

    let result = client.url().await;
    assert_eq!(result, "https://api.proton.com");
}