databend_driver/
lib.rs

1// Copyright 2021 Datafuse Labs
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15mod client;
16pub mod conn;
17#[cfg(feature = "flight-sql")]
18mod flight_sql;
19mod params;
20mod placeholder;
21pub mod rest_api;
22
23pub use client::Client;
24pub use client::Connection;
25pub use conn::ConnectionInfo;
26pub use params::Param;
27pub use params::Params;
28
29// pub use for convenience
30pub use databend_driver_core::error::{Error, Result};
31pub use databend_driver_core::rows::{
32    Row, RowIterator, RowStatsIterator, RowWithStats, ServerStats,
33};
34pub use databend_driver_core::schema::{
35    DataType, DecimalSize, Field, NumberDataType, Schema, SchemaRef,
36};
37pub use databend_driver_core::value::Interval;
38pub use databend_driver_core::value::{NumberValue, Value};
39
40pub use databend_driver_macros::TryFromRow;
41
42#[doc(hidden)]
43pub mod _macro_internal {
44    pub use databend_driver_core::_macro_internal::*;
45}