#[cfg(feature = "arrow-egress")]
pub mod arrow;
pub(crate) mod auth;
pub(crate) mod binds;
pub mod column;
pub mod column_kind;
pub mod config;
pub(crate) mod decoder;
pub(crate) mod gorilla;
pub(crate) mod query_request;
#[cfg(feature = "sync-reader-qwp-ws")]
pub mod reader;
pub(crate) mod schema;
pub(crate) mod server_event;
pub(crate) mod symbol_dict;
#[cfg(feature = "sync-reader-qwp-ws")]
pub(crate) mod tls;
#[cfg(feature = "sync-reader-qwp-ws")]
pub(crate) mod tracker;
#[cfg(feature = "sync-reader-qwp-ws")]
pub(crate) mod transport;
pub mod wire;
#[cfg(feature = "sync-reader-qwp-ws")]
pub(crate) mod ws;
pub use crate::ingress::CertificateAuthority;
pub use binds::{Bind, SimpleNullKind};
pub use column::{
BinaryColumn, ColumnView, Decimal64Column, Decimal128Column, Decimal256Column, DecimalColumn,
DoubleArrayColumn, FixedBytesColumn, FixedColumn, FixedWidth, GeohashColumn, Long256Column,
LongArrayColumn, SymbolColumn, UuidColumn, Validity, VarcharColumn,
};
pub use column_kind::ColumnKind;
pub use config::{
Compression, DEFAULT_COMPRESSION_LEVEL, DEFAULT_FAILOVER_BACKOFF_INITIAL_MS,
DEFAULT_FAILOVER_BACKOFF_MAX_MS, DEFAULT_FAILOVER_ENABLED, DEFAULT_FAILOVER_MAX_ATTEMPTS,
Endpoint, MAX_ADDRS, MAX_COMPRESSION_LEVEL, MAX_FAILOVER_BACKOFF_MAX_MS,
MAX_FAILOVER_MAX_ATTEMPTS, MIN_COMPRESSION_LEVEL, ReaderConfig, Target, TlsVerify,
};
#[cfg(feature = "sync-reader-qwp-ws")]
pub use reader::{
BatchView, Cursor, FailoverPhase, FailoverProgressEvent, FailoverResetEvent, Reader,
ReaderQuery, ReaderStats, Terminal,
};
pub use server_event::{ServerInfo, ServerRole, UpgradeReject};
pub use symbol_dict::{SymbolDict, SymbolEntry};
#[doc(hidden)]
#[cfg(feature = "sync-reader-qwp-ws")]
pub mod _bench_internals {
pub use crate::egress::decoder::{DecodedBatch, ZstdScratch, decode_result_batch};
pub use crate::egress::schema::Schema;
pub use crate::egress::symbol_dict::SymbolDict;
pub use bytes::Bytes;
#[cfg(feature = "arrow-egress")]
pub fn bench_batch_to_record_batch(
schema: &Schema,
batch: DecodedBatch,
dict: &SymbolDict,
) -> crate::error::Result<arrow::array::RecordBatch> {
use std::sync::Arc;
let arrow_schema = Arc::new(crate::egress::arrow::batch_arrow_schema(schema, &batch)?);
crate::egress::arrow::batch_to_record_batch(arrow_schema, schema, batch, dict)
}
#[cfg(feature = "polars-egress")]
pub fn bench_batch_to_polars(
schema: &Schema,
batch: DecodedBatch,
dict: &SymbolDict,
) -> crate::error::Result<polars::frame::DataFrame> {
let rb = bench_batch_to_record_batch(schema, batch, dict)?;
crate::egress::arrow::polars::record_batch_to_dataframe(rb)
}
}