#[cfg(feature = "arrow")]
pub mod database_adapter;
#[cfg(feature = "arrow")]
pub mod executor_wrapper;
#[cfg(feature = "arrow")]
use std::sync::Arc;
#[cfg(feature = "arrow")]
pub use database_adapter::FlightDatabaseAdapter;
#[cfg(feature = "arrow")]
pub use executor_wrapper::ExecutorQueryAdapter;
#[cfg(feature = "arrow")]
use fraiseql_arrow::FraiseQLFlightService;
#[cfg(feature = "arrow")]
use fraiseql_core::db::postgres::PostgresAdapter;
#[cfg(feature = "arrow")]
pub fn create_flight_service(adapter: Arc<PostgresAdapter>) -> FraiseQLFlightService {
let flight_adapter = FlightDatabaseAdapter::from_arc(adapter);
FraiseQLFlightService::new_with_db(Arc::new(flight_adapter))
}