Skip to main content

lake_driver/
lib.rs

1// Copyright 2025 TiDB Cloud
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 lake_client::schema::{DataType, DecimalSize, Field, NumberDataType, Schema, SchemaRef};
35pub use lake_driver_core::error::{Error, Result};
36pub use lake_driver_core::rows::{Row, RowIterator, RowStatsIterator, RowWithStats, ServerStats};
37pub use lake_driver_core::value::Interval;
38pub use lake_driver_core::value::{
39    zoned_to_chrono_datetime, zoned_to_chrono_fixed_offset, NumberValue, Value,
40};
41
42pub use lake_driver_macros::serde_bend;
43pub use lake_driver_macros::TryFromRow;
44
45#[doc(hidden)]
46pub mod _macro_internal {
47    pub use lake_driver_core::_macro_internal::*;
48}