We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd5e67d commit a85768dCopy full SHA for a85768d
arrow-flight/src/sql/client.rs
@@ -69,10 +69,14 @@ pub struct FlightSqlServiceClient<T> {
69
impl FlightSqlServiceClient<Channel> {
70
/// Creates a new FlightSql client that connects to a server over an arbitrary tonic `Channel`
71
pub fn new(channel: Channel) -> Self {
72
- let flight_client = FlightServiceClient::new(channel);
73
- FlightSqlServiceClient {
+ Self::new_from_inner(FlightServiceClient::new(channel))
+ }
74
+
75
+ /// Creates a new higher level client with the provided lower level client
76
+ pub fn new_from_inner(inner: FlightServiceClient<Channel>) -> Self {
77
+ Self {
78
token: None,
- flight_client,
79
+ flight_client: inner,
80
headers: HashMap::default(),
81
}
82
0 commit comments