clicktype 0.2.0

Type-safe ClickHouse client for Rust with compile-time query validation
Documentation
//! ClickType - High-performance, Type-safe ClickHouse Client for Rust
//!
//! # Features
//!
//! *   **Type-Safe Schema Definition**: `#[derive(ClickTable)]` macro.
//! *   **High-Throughput Ingestion**: `Batcher` with active memory management.
//! *   **Ergonomic Query Builder**: `QueryBuilder` for safe SQL construction.
//! *   **Observability**: Built-in `tracing` support.
//!
//! # Quick Start
//!
//! ```rust,ignore
//! use clicktype::prelude::*;
//!
//! #[derive(ClickTable)]
//! #[click_table(name = "events")]
//! pub struct Event {
//!     #[click_column(primary_key)]
//!     pub id: u64,
//!     pub message: String,
//! }
//! ```

/// Common imports for convenient usage.
pub mod prelude {
    pub use clicktype_core::traits::{ClickTable, ClickInsertable, ClickReadable, TypedColumn};
    pub use clicktype_core::types::{
        Nullable, LowCardinality, Array, Map, DateTime64, Date,
    };
    pub use clicktype_macros::{ClickTable, ClickEnum};
}

// Re-export core modules
pub use clicktype_core as core;
pub use clicktype_macros as macros;
pub use clicktype_query as query;
pub use clicktype_batch as batch;
pub use clicktype_transport as transport;

// Convenience re-exports

pub use clicktype_transport::{Client, ClientBuilder, Compression};

pub use clicktype_batch::{Batcher, BatchConfig};

pub use clicktype_query::QueryBuilder;