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_driver_core::error::{Error, Result};
35pub use databend_driver_core::rows::{
36    Row, RowIterator, RowStatsIterator, RowWithStats, ServerStats,
37};
38pub use databend_driver_core::schema::{
39    DataType, DecimalSize, Field, NumberDataType, Schema, SchemaRef,
40};
41pub use databend_driver_core::value::Interval;
42pub use databend_driver_core::value::{NumberValue, Value};
43
44pub use databend_driver_macros::serde_bend;
45pub use databend_driver_macros::TryFromRow;
46
47#[doc(hidden)]
48pub mod _macro_internal {
49    pub use databend_driver_core::_macro_internal::*;
50}