mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
style: rustfmt
This commit is contained in:
parent
89305873b0
commit
df393128f8
9 changed files with 17 additions and 12 deletions
|
@ -1,5 +1,7 @@
|
|||
use crate::any::connection::AnyConnectionKind;
|
||||
use crate::any::{Any, AnyColumn, AnyConnection, AnyQueryResult, AnyRow, AnyStatement, AnyTypeInfo};
|
||||
use crate::any::{
|
||||
Any, AnyColumn, AnyConnection, AnyQueryResult, AnyRow, AnyStatement, AnyTypeInfo,
|
||||
};
|
||||
use crate::database::Database;
|
||||
use crate::describe::Describe;
|
||||
use crate::error::Error;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::any::{
|
||||
AnyArgumentBuffer, AnyArguments, AnyColumn, AnyConnection, AnyQueryResult, AnyRow, AnyStatement,
|
||||
AnyTransactionManager, AnyTypeInfo, AnyValue, AnyValueRef,
|
||||
AnyArgumentBuffer, AnyArguments, AnyColumn, AnyConnection, AnyQueryResult, AnyRow,
|
||||
AnyStatement, AnyTransactionManager, AnyTypeInfo, AnyValue, AnyValueRef,
|
||||
};
|
||||
use crate::database::{Database, HasArguments, HasStatement, HasStatementCache, HasValueRef};
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@ use crate::mssql::protocol::packet::PacketType;
|
|||
use crate::mssql::protocol::rpc::{OptionFlags, Procedure, RpcRequest};
|
||||
use crate::mssql::protocol::sql_batch::SqlBatch;
|
||||
use crate::mssql::{
|
||||
Mssql, MssqlArguments, MssqlConnection, MssqlQueryResult, MssqlRow, MssqlStatement, MssqlTypeInfo,
|
||||
Mssql, MssqlArguments, MssqlConnection, MssqlQueryResult, MssqlRow, MssqlStatement,
|
||||
MssqlTypeInfo,
|
||||
};
|
||||
use either::Either;
|
||||
use futures_core::future::BoxFuture;
|
||||
|
|
|
@ -7,8 +7,8 @@ mod database;
|
|||
mod error;
|
||||
mod io;
|
||||
mod options;
|
||||
mod query_result;
|
||||
mod protocol;
|
||||
mod query_result;
|
||||
mod row;
|
||||
mod statement;
|
||||
mod transaction;
|
||||
|
|
|
@ -88,7 +88,8 @@ impl MySqlConnection {
|
|||
sql: &'q str,
|
||||
arguments: Option<MySqlArguments>,
|
||||
persistent: bool,
|
||||
) -> Result<impl Stream<Item = Result<Either<MySqlQueryResult, MySqlRow>, Error>> + 'e, Error> {
|
||||
) -> Result<impl Stream<Item = Result<Either<MySqlQueryResult, MySqlRow>, Error>> + 'e, Error>
|
||||
{
|
||||
let mut logger = QueryLogger::new(sql, self.log_settings.clone());
|
||||
|
||||
self.stream.wait_until_ready().await?;
|
||||
|
|
|
@ -8,8 +8,8 @@ mod database;
|
|||
mod error;
|
||||
mod io;
|
||||
mod options;
|
||||
mod query_result;
|
||||
mod protocol;
|
||||
mod query_result;
|
||||
mod row;
|
||||
mod statement;
|
||||
mod transaction;
|
||||
|
|
|
@ -6,8 +6,8 @@ use crate::postgres::type_info::{PgCustomType, PgType, PgTypeKind};
|
|||
use crate::postgres::{PgArguments, PgColumn, PgConnection, PgTypeInfo};
|
||||
use crate::query_as::query_as;
|
||||
use crate::query_scalar::{query_scalar, query_scalar_with};
|
||||
use crate::HashMap;
|
||||
use crate::types::Json;
|
||||
use crate::HashMap;
|
||||
use futures_core::future::BoxFuture;
|
||||
use std::fmt::Write;
|
||||
use std::sync::Arc;
|
||||
|
|
|
@ -9,8 +9,8 @@ use crate::postgres::message::{
|
|||
use crate::postgres::statement::PgStatementMetadata;
|
||||
use crate::postgres::type_info::PgType;
|
||||
use crate::postgres::{
|
||||
statement::PgStatement, PgArguments, PgConnection, PgQueryResult, PgRow, PgTypeInfo, PgValueFormat,
|
||||
Postgres,
|
||||
statement::PgStatement, PgArguments, PgConnection, PgQueryResult, PgRow, PgTypeInfo,
|
||||
PgValueFormat, Postgres,
|
||||
};
|
||||
use either::Either;
|
||||
use futures_core::future::BoxFuture;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
use crate::database::{Database, HasArguments, HasStatement, HasStatementCache, HasValueRef};
|
||||
use crate::sqlite::{
|
||||
SqliteArgumentValue, SqliteArguments, SqliteColumn, SqliteConnection, SqliteQueryResult, SqliteRow,
|
||||
SqliteStatement, SqliteTransactionManager, SqliteTypeInfo, SqliteValue, SqliteValueRef,
|
||||
SqliteArgumentValue, SqliteArguments, SqliteColumn, SqliteConnection, SqliteQueryResult,
|
||||
SqliteRow, SqliteStatement, SqliteTransactionManager, SqliteTypeInfo, SqliteValue,
|
||||
SqliteValueRef,
|
||||
};
|
||||
|
||||
/// Sqlite database driver.
|
||||
|
|
Loading…
Reference in a new issue