#[cfg(feature = "duckdb")]
mod duckdb;
mod memory;
#[cfg(feature = "pgstac")]
mod pgstac;
use crate::Error;
#[cfg(feature = "duckdb")]
pub use duckdb::DuckdbBackend;
pub use memory::MemoryBackend;
#[cfg(feature = "pgstac")]
pub use pgstac::PgstacBackend;
use stac::api::{CollectionsClient, ItemsClient, StreamItemsClient, TransactionClient};
pub trait Backend:
ItemsClient<Error = Error>
+ CollectionsClient<Error = Error>
+ StreamItemsClient<Error = Error>
+ TransactionClient<Error = Error>
+ Clone
+ Sync
+ Send
+ 'static
{
fn has_item_search(&self) -> bool;
fn has_filter(&self) -> bool;
}