use akita_core::cfg_if;
cfg_if! {if #[cfg(feature = "auth")] {
mod auth;
pub use auth::*;
}}
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;
}}
#[derive(Debug, Clone, PartialEq)]
pub enum DriverType {
MySQL,
Sqlite,
Oracle,
Postgres,
Mssql,
Unsupported,
}
impl Default for DriverType {
fn default() -> Self {
DriverType::Unsupported
}
}