pub mod builder;
pub mod compute;
pub mod config;
pub mod db;
pub mod error;
pub mod storage;
pub use builder::DBBuilder;
pub use db::DB;
pub use error::{Result, SpatioError};
#[cfg(feature = "sync")]
pub use db::SyncDB;
pub type Spatio = DB;
pub use geo::Rect;
pub use spatio_types::geo::{Point, Polygon};
pub use config::{
BoundingBox2D, BoundingBox3D, Config, DbStats, Point3d, Polygon3D, PolygonDynamic,
PolygonDynamic3D, SetOptions, SyncMode, SyncPolicy, TemporalBoundingBox2D,
TemporalBoundingBox3D, TemporalPoint, TemporalPoint3D, Trajectory, Trajectory3D,
};
pub use compute::spatial::DistanceMetric;
#[cfg(feature = "time-index")]
pub use config::{HistoryEntry, HistoryEventKind};
pub use db::{Namespace, NamespaceManager};
pub use compute::geojson;
pub use compute::validation;
#[cfg(feature = "aof")]
pub use storage::{AOFCommand, PersistenceLog};
pub use storage::{MemoryBackend, StorageBackend, StorageOp, StorageStats};
#[cfg(feature = "snapshot")]
pub use storage::{SnapshotConfig, SnapshotFile};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub mod prelude {
pub use crate::{DBBuilder, Result, Spatio, SpatioError};
#[cfg(feature = "sync")]
pub use crate::SyncDB;
pub use crate::{Point, Polygon};
pub use geo::Rect;
pub use crate::{Config, SetOptions, SyncPolicy};
pub use crate::{Namespace, NamespaceManager};
pub use crate::{MemoryBackend, StorageBackend};
pub use crate::{geojson, validation};
pub use std::time::Duration;
}