MCPcopy Create free account
hub / github.com/apache/arrow-rs / auth_client

Function auth_client

arrow-flight/examples/flight_sql_server.rs:835–838  ·  view source on GitHub ↗
(client: &mut FlightSqlServiceClient<Channel>)

Source from the content-addressed store, hash-verified

833 }
834
835 async fn auth_client(client: &mut FlightSqlServiceClient<Channel>) {
836 let token = client.handshake("admin", "password").await.unwrap();
837 client.set_token(String::from_utf8(token.to_vec()).unwrap());
838 }
839
840 async fn test_uds_client<F, C>(f: F)
841 where

Callers 2

test_selectFunction · 0.85
test_execute_updateFunction · 0.85

Calls 2

set_tokenMethod · 0.80
handshakeMethod · 0.45

Tested by 2

test_selectFunction · 0.68
test_execute_updateFunction · 0.68