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 client::LoadMethod;
26pub use conn::ConnectionInfo;
27pub use params::Param;
28pub use params::Params;
29
30// pub use for convenience
31pub use databend_driver_core::error::{Error, Result};
32pub use databend_driver_core::rows::{
33    Row, RowIterator, RowStatsIterator, RowWithStats, ServerStats,
34};
35pub use databend_driver_core::schema::{
36    DataType, DecimalSize, Field, NumberDataType, Schema, SchemaRef,
37};
38pub use databend_driver_core::value::Interval;
39pub use databend_driver_core::value::{NumberValue, Value};
40
41pub use databend_driver_macros::TryFromRow;
42
43#[doc(hidden)]
44pub mod _macro_internal {
45    pub use databend_driver_core::_macro_internal::*;
46}