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