cargo fmt
This commit is contained in:
parent
05181994d3
commit
1905f62430
@ -1,4 +1,7 @@
|
||||
use crate::{ConnectionTrait, DbBackend, EntityTrait, FromQueryResult, Select, SelectModel, SelectTwo, SelectTwoModel, Selector, SelectorTrait, error::*};
|
||||
use crate::{
|
||||
error::*, ConnectionTrait, DbBackend, EntityTrait, FromQueryResult, Select, SelectModel,
|
||||
SelectTwo, SelectTwoModel, Selector, SelectorTrait,
|
||||
};
|
||||
use async_stream::stream;
|
||||
use futures::Stream;
|
||||
use sea_query::{Alias, Expr, SelectStatement};
|
||||
@ -170,7 +173,7 @@ where
|
||||
/// Perform a count on the paginated results
|
||||
async fn count(self, db: &'db C) -> Result<usize, DbErr>
|
||||
where
|
||||
Self: Send + Sized
|
||||
Self: Send + Sized,
|
||||
{
|
||||
self.paginate(db, 1).num_items().await
|
||||
}
|
||||
@ -225,10 +228,10 @@ where
|
||||
#[cfg(test)]
|
||||
#[cfg(feature = "mock")]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::entity::prelude::*;
|
||||
use crate::{tests_cfg::*, ConnectionTrait};
|
||||
use crate::{DatabaseConnection, DbBackend, MockDatabase, Transaction};
|
||||
use super::*;
|
||||
use futures::TryStreamExt;
|
||||
use sea_query::{Alias, Expr, SelectStatement, Value};
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
use crate::{
|
||||
error::*, ConnectionTrait, EntityTrait, FromQueryResult, IdenStatic, Iterable, ModelTrait,
|
||||
PrimaryKeyToColumn, QueryResult, Select, SelectA, SelectB, SelectTwo, SelectTwoMany,
|
||||
Statement, TryGetableMany,
|
||||
PrimaryKeyToColumn, QueryResult, Select, SelectA, SelectB, SelectTwo, SelectTwoMany, Statement,
|
||||
TryGetableMany,
|
||||
};
|
||||
use futures::{Stream, TryStreamExt};
|
||||
use sea_query::SelectStatement;
|
||||
|
@ -1,6 +1,8 @@
|
||||
pub mod common;
|
||||
|
||||
pub use sea_orm::{entity::*, error::*, query::*, sea_query, tests_cfg::*, Database, DbConn, PaginatorTrait};
|
||||
pub use sea_orm::{
|
||||
entity::*, error::*, query::*, sea_query, tests_cfg::*, Database, DbConn, PaginatorTrait,
|
||||
};
|
||||
|
||||
// cargo test --features sqlx-sqlite,runtime-async-std-native-tls --test basic
|
||||
#[sea_orm_macros::test]
|
||||
|
Loading…
x
Reference in New Issue
Block a user