use crate::connection::ConnectionPool;
use once_cell::sync::OnceCell;
pub mod graph;
pub mod instance;
pub mod record;
pub mod schema;
static CONNECTION_POOL: OnceCell<ConnectionPool> = OnceCell::new();
pub fn init_connection_pool(pool: ConnectionPool) {
CONNECTION_POOL.set(pool).ok();
}
pub(crate) fn connection_pool() -> Option<&'static ConnectionPool> {
CONNECTION_POOL.get()
}
pub use graph::{graph_edges, graph_nodes, graph_topo_order};
pub use instance::{discover_instances, get_instance_info};
pub use record::{drain_record, get_record, list_records, set_record};
pub use schema::query_schema;