Skip to main content

graphar_flight/
lib.rs

1mod tests;
2
3pub mod auth;
4pub mod convert;
5pub mod error;
6pub mod export;
7pub mod falkor;
8pub mod registry;
9pub mod server;
10pub mod service;
11
12pub use auth::{AuthConfig, Authorizer, BasicCredential, Identity};
13pub use error::{FlightSqlError, Result};
14pub use export::{ExportReport, export_cypher, export_cypher_chunked};
15#[cfg(feature = "skade")]
16pub use export::{append_arrow_to_iceberg, export_cypher_to_iceberg};
17pub use falkor::FalkorExecutor;
18pub use registry::SchemaRegistry;
19pub use server::{ServerOptions, TlsOptions, run_server, run_server_with};
20pub use service::CypherFlightService;
21
22/// **Introspection / emit marker** — record one functional-status row for the
23/// nornir test matrix. Wraps `nornir_testmatrix::functional_status` behind the
24/// `testmatrix` feature (a compiled-out `#[inline]` no-op otherwise, with no
25/// nornir dep). `component` is the reporting surface (e.g.
26/// `"graphar-flight/do_get_statement"`), `check` what it verified, `ok` the
27/// verdict, `detail` a short human note. The Flight SQL handlers call this so
28/// `nornir test --features testmatrix` SEES each surface's health.
29#[inline]
30pub fn functional_status(component: &str, check: &str, ok: bool, detail: &str) {
31    #[cfg(feature = "testmatrix")]
32    nornir_testmatrix::functional_status(component, check, ok, detail);
33    #[cfg(not(feature = "testmatrix"))]
34    {
35        let _ = (component, check, ok, detail);
36    }
37}