crates/graphar-flight/src/lib.rs
mod tests;
pub mod auth;
pub mod compact;
pub mod convert;
pub mod error;
pub mod export;
pub mod falkor;
pub mod registry;
pub mod server;
pub mod service;
pub use auth::{AuthConfig, Authorizer, BasicCredential, Identity};
pub use compact::{CompactIdNames, compact_response_to_verbose};
/// The ONE integer-column reader for batches this crate produces — the inverse
/// of the type sniff, shared by every consumer (knut's `knut_graphdb::falkor`, korp's
/// graph view) instead of each hand-rolling a downcast that drifts from the
/// sniff. See [`convert::i64_column`].
pub use convert::i64_column;
/// The f64 sibling of [`i64_column`] — the ONE float-column reader, beside the same
/// sniff. See [`convert::f64_column`].
pub use convert::f64_column;
pub use error::{FlightSqlError, Result};
pub use export::{ExportReport, export_cypher, export_cypher_chunked};
#[cfg(feature = "skade")]
pub use export::{append_arrow_to_iceberg, export_cypher_to_iceberg};
pub use falkor::{FalkorExecutor, FalkorTls};
pub use registry::SchemaRegistry;
pub use server::{ServerOptions, TlsOptions, run_server, run_server_with};
pub use service::CypherFlightService;
/// **Introspection / emit marker** — record one functional-status row for the
/// nornir test matrix. Wraps `nornir_testmatrix::functional_status` behind the
/// `testmatrix` feature (a compiled-out `#[inline]` no-op otherwise, with no
/// nornir dep). `component` is the reporting surface (e.g.
/// `"graphar-flight/do_get_statement"`), `check` what it verified, `ok` the
/// verdict, `detail` a short human note. The Flight SQL handlers call this so
/// `nornir test --features testmatrix` SEES each surface's health.
#[inline]
pub fn functional_status(component: &str, check: &str, ok: bool, detail: &str) {
#[cfg(feature = "testmatrix")]
nornir_testmatrix::functional_status(component, check, ok, detail);
#[cfg(not(feature = "testmatrix"))]
{
let _ = (component, check, ok, detail);
}
}