Cleanup ambiguous glob imports (#1692)
* Cleanup ambiguous glob imports * fix
This commit is contained in:
parent
126f96b5c6
commit
d099669ad8
@ -1,5 +1,3 @@
|
|||||||
pub use super::super::bakery_chain::*;
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::common::setup::{create_enum, create_table, create_table_without_asserts};
|
use crate::common::setup::{create_enum, create_table, create_table_without_asserts};
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
|
@ -2,8 +2,7 @@ pub mod common;
|
|||||||
|
|
||||||
pub use common::{bakery_chain::*, setup::*, TestContext};
|
pub use common::{bakery_chain::*, setup::*, TestContext};
|
||||||
use pretty_assertions::assert_eq;
|
use pretty_assertions::assert_eq;
|
||||||
pub use sea_orm::entity::*;
|
use sea_orm::prelude::*;
|
||||||
pub use sea_orm::*;
|
|
||||||
|
|
||||||
#[sea_orm_macros::test]
|
#[sea_orm_macros::test]
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
pub mod common;
|
pub mod common;
|
||||||
|
|
||||||
pub use common::{bakery_chain::*, setup::*, TestContext};
|
pub use common::{bakery_chain::*, setup::*, TestContext};
|
||||||
pub use sea_orm::{entity::*, query::*, DbConn, DbErr, FromQueryResult};
|
use sea_orm::{entity::*, query::*, DbConn, DbErr};
|
||||||
|
|
||||||
#[sea_orm_macros::test]
|
#[sea_orm_macros::test]
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
@ -4,8 +4,8 @@ pub use chrono::offset::Utc;
|
|||||||
pub use common::{bakery_chain::*, setup::*, TestContext};
|
pub use common::{bakery_chain::*, setup::*, TestContext};
|
||||||
pub use rust_decimal::prelude::*;
|
pub use rust_decimal::prelude::*;
|
||||||
pub use rust_decimal_macros::dec;
|
pub use rust_decimal_macros::dec;
|
||||||
pub use sea_orm::{entity::*, query::*, DbErr, DerivePartialModel, FromQueryResult};
|
use sea_orm::{entity::*, query::*, DbErr, DerivePartialModel, FromQueryResult};
|
||||||
pub use sea_query::{Alias, Expr, Func, SimpleExpr};
|
use sea_query::{Expr, Func, SimpleExpr};
|
||||||
pub use uuid::Uuid;
|
pub use uuid::Uuid;
|
||||||
|
|
||||||
// Run the test locally:
|
// Run the test locally:
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
pub mod common;
|
pub mod common;
|
||||||
|
|
||||||
pub use common::{bakery_chain::*, setup::*, TestContext};
|
pub use common::{bakery_chain::*, setup::*, TestContext};
|
||||||
pub use sea_orm::{entity::prelude::*, *};
|
use sea_orm::entity::prelude::*;
|
||||||
pub use sea_query::Query;
|
use sea_query::Query;
|
||||||
|
|
||||||
#[sea_orm_macros::test]
|
#[sea_orm_macros::test]
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
@ -2,7 +2,7 @@ pub mod common;
|
|||||||
|
|
||||||
pub use common::{features::*, setup::*, TestContext};
|
pub use common::{features::*, setup::*, TestContext};
|
||||||
use pretty_assertions::assert_eq;
|
use pretty_assertions::assert_eq;
|
||||||
use sea_orm::{entity::prelude::*, *};
|
use sea_orm::{entity::prelude::*, IntoActiveModel, QueryOrder};
|
||||||
|
|
||||||
#[sea_orm_macros::test]
|
#[sea_orm_macros::test]
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
@ -4,9 +4,11 @@ pub use chrono::offset::Utc;
|
|||||||
pub use common::{bakery_chain::*, setup::*, TestContext};
|
pub use common::{bakery_chain::*, setup::*, TestContext};
|
||||||
pub use rust_decimal::prelude::*;
|
pub use rust_decimal::prelude::*;
|
||||||
pub use rust_decimal_macros::dec;
|
pub use rust_decimal_macros::dec;
|
||||||
pub use sea_orm::{entity::*, query::*, DatabaseConnection, FromQueryResult};
|
|
||||||
pub use uuid::Uuid;
|
pub use uuid::Uuid;
|
||||||
|
|
||||||
|
#[cfg(any(feature = "sqlx-mysql", feature = "sqlx-postgres"))]
|
||||||
|
use sea_orm::{entity::*, query::*, DatabaseConnection, FromQueryResult};
|
||||||
|
|
||||||
// Run the test locally:
|
// Run the test locally:
|
||||||
// DATABASE_URL="mysql://root:@localhost" cargo test --features sqlx-mysql,runtime-async-std --test sequential_op_tests
|
// DATABASE_URL="mysql://root:@localhost" cargo test --features sqlx-mysql,runtime-async-std --test sequential_op_tests
|
||||||
#[sea_orm_macros::test]
|
#[sea_orm_macros::test]
|
||||||
|
@ -2,8 +2,7 @@ pub mod common;
|
|||||||
|
|
||||||
pub use common::{bakery_chain::*, setup::*, TestContext};
|
pub use common::{bakery_chain::*, setup::*, TestContext};
|
||||||
use pretty_assertions::assert_eq;
|
use pretty_assertions::assert_eq;
|
||||||
pub use sea_orm::entity::*;
|
use sea_orm::{prelude::*, AccessMode, DatabaseTransaction, IsolationLevel, Set, TransactionTrait};
|
||||||
pub use sea_orm::*;
|
|
||||||
|
|
||||||
#[sea_orm_macros::test]
|
#[sea_orm_macros::test]
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user