pub use crate::comm::*;
pub use crate::config::*;
pub use crate::converter::*;
pub use crate::driver::DriverType;
#[doc(inline)]
pub use crate::errors::*;
pub use crate::ext::Request;
pub use crate::interceptor::InterceptorBase;
pub use crate::interceptor::LoggingInterceptor;
pub use crate::key::*;
pub use crate::mapper::IPage;
pub use crate::xml::*;
#[doc(inline)]
pub use chrono::{Local, NaiveDate, NaiveDateTime};
#[cfg(feature = "auth")]
pub use crate::driver::{DataBaseUser, GrantUserPrivilege, Privilege, Role, UserInfo};
pub use akita_core::*;
pub use akita_derive::{
delete, insert, list, query, select_one, sql, sql_xml, update, AkitaEnum, FromValue, ToValue,
};
cfg_if! {if #[cfg(all(
any(
feature = "mysql-sync",
feature = "postgres-sync",
feature = "sqlite-sync",
feature = "oracle-sync",
feature = "mssql-sync"
)
))] {
pub use crate::transaction::blocking::AkitaTransaction;
pub use crate::interceptor::blocking::{InterceptorChain, InterceptorBuilder, AkitaInterceptor};
pub use crate::driver::blocking::DbDriver;
pub use crate::repository::EntityRepository;
pub use crate::pool::blocking::{DBPool, DBPoolWrapper, SyncPool};
pub use crate::core::blocking::{Akita as AkitaSync, UpdateBuilder, QueryBuilder};
pub use crate::mapper::blocking::AkitaMapper;
pub use crate::ext::blocking::{IService, Mapper};
pub use akita_derive::Entity;
}}
cfg_if! {if #[cfg(all(
feature = "auth",
any(
feature = "mysql-sync",
feature = "postgres-sync",
feature = "sqlite-sync",
feature = "oracle-sync",
feature = "mssql-sync"
)
))] {
pub use crate::driver::blocking::DbManager;
}}
cfg_if! {if #[cfg(any(
feature = "mysql-async",
feature = "postgres-async",
feature = "sqlite-async",
feature = "oracle-async",
feature = "mssql-async"
))] {
pub use crate::transaction::non_blocking::AsyncAkitaTransaction;
pub use crate::interceptor::non_blocking::{AsyncInterceptorChain, AsyncInterceptorBuilder, AsyncAkitaInterceptor};
pub use crate::driver::non_blocking::{AsyncDbDriver};
pub use crate::pool::non_blocking::{AsyncDBPool, AsyncDBPoolWrapper, AsyncPool};
pub use crate::core::non_blocking::{AkitaAsync, AsyncUpdateBuilder, AsyncQueryBuilder};
pub use crate::mapper::non_blocking::AsyncAkitaMapper;
pub use crate::ext::non_blocking::{AsyncService, AsyncMapper};
pub use akita_derive::AsyncEntity;
}}
cfg_if! {if #[cfg(all(
any(
feature = "mysql-sync",
feature = "postgres-sync",
feature = "sqlite-sync",
feature = "oracle-sync",
feature = "mssql-sync"
),
not(any(
feature = "mysql-async",
feature = "postgres-async",
feature = "sqlite-async",
feature = "mssql-async",
feature = "oracle-async"
))
))] {
pub type Akita = AkitaSync;
}}
cfg_if! {if #[cfg(all(
any(
feature = "mysql-async",
feature = "postgres-async",
feature = "sqlite-async",
feature = "oracle-async",
feature = "mssql-async"
),
not(any(
feature = "mysql-sync",
feature = "postgres-sync",
feature = "sqlite-sync",
feature = "mssql-sync",
feature = "oracle-sync"
))
))] {
pub use AkitaAsync as Akita;
pub use AsyncDBPool as DBPool;
pub use AsyncDbDriver as DbDriver;
pub use AsyncUpdateBuilder as UpdateBuilder;
pub use AsyncQueryBuilder as QueryBuilder;
pub use AsyncInterceptorChain as InterceptorChain;
pub use AsyncAkitaTransaction as AkitaTransaction;
pub use AsyncAkitaMapper as AkitaMapper;
pub use AsyncAkitaInterceptor as AkitaInterceptor;
pub use AsyncEntity as Entity;
}}