pub use sqlx

This commit is contained in:
Chris Tsang 2024-08-02 10:13:59 +01:00
parent 9675dd0bf3
commit 8475ea0346
2 changed files with 7 additions and 4 deletions

View File

@ -1,13 +1,13 @@
#[cfg(all(feature = "sea-orm-internal", feature = "sqlx-dep"))] #[cfg(feature = "sqlx-dep")]
pub use sqlx::error::Error as SqlxError; pub use sqlx::error::Error as SqlxError;
#[cfg(all(feature = "sea-orm-internal", feature = "sqlx-mysql"))] #[cfg(feature = "sqlx-mysql")]
pub use sqlx::mysql::MySqlDatabaseError as SqlxMySqlError; pub use sqlx::mysql::MySqlDatabaseError as SqlxMySqlError;
#[cfg(all(feature = "sea-orm-internal", feature = "sqlx-postgres"))] #[cfg(feature = "sqlx-postgres")]
pub use sqlx::postgres::PgDatabaseError as SqlxPostgresError; pub use sqlx::postgres::PgDatabaseError as SqlxPostgresError;
#[cfg(all(feature = "sea-orm-internal", feature = "sqlx-sqlite"))] #[cfg(feature = "sqlx-sqlite")]
pub use sqlx::sqlite::SqliteError as SqlxSqliteError; pub use sqlx::sqlite::SqliteError as SqlxSqliteError;
use thiserror::Error; use thiserror::Error;

View File

@ -371,3 +371,6 @@ pub use sea_query::Iden;
pub use sea_orm_macros::EnumIter; pub use sea_orm_macros::EnumIter;
pub use strum; pub use strum;
#[cfg(feature = "sqlx-dep")]
pub use sqlx;