use akita_core::{cfg_if, Wrapper};
cfg_if! {if #[cfg(any(
feature = "mysql-sync",
feature = "postgres-sync",
feature = "sqlite-sync",
feature = "oracle-sync",
feature = "mssql-sync"
))] {
pub mod blocking;
}}
cfg_if! {if #[cfg(any(
feature = "mysql-async",
feature = "postgres-async",
feature = "sqlite-async",
feature = "oracle-async",
feature = "mssql-async"
))]{
pub mod non_blocking;
}}
pub trait Request: Sync + Send {
fn get_page_no(&self) -> u64 {
1
}
fn get_page_size(&self) -> u64 {
10
}
fn asc_fields(&self) -> Option<&String> {
None
}
fn desc_fields(&self) -> Option<&String> {
None
}
fn get_wrapper(&self) -> Wrapper {
let wrapper = Wrapper::new();
wrapper
}
}