Skip to content

Commit

Permalink
cargo fmt for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoto7250 committed Jun 24, 2024
1 parent 1a2293b commit eebae4f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
5 changes: 4 additions & 1 deletion examples/diesel_sqlite/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ use diesel::deserialize::{self, FromSql};
use diesel::sql_types::BigInt;
use diesel::sql_types::{Blob, Text};
use diesel::{Connection, QueryableByName, RunQueryDsl, SqliteConnection};
use sea_query::{Alias, ColumnDef, ConditionalStatement, Expr, Func, Iden, Index, Order, Query, SqliteQueryBuilder, Table};
use sea_query::{
Alias, ColumnDef, ConditionalStatement, Expr, Func, Iden, Index, Order, Query,
SqliteQueryBuilder, Table,
};
use sea_query_diesel::DieselBinder;
use serde_json::json;
use time::macros::{date, time};
Expand Down
8 changes: 6 additions & 2 deletions examples/rusqlite/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use chrono::{NaiveDate, NaiveDateTime};
use rusqlite::{Connection, Result, Row};
use sea_query::{ColumnDef, ConditionalStatement, Expr, Func, Iden, Index, Order, Query, SqliteQueryBuilder, Table};
use sea_query::{
ColumnDef, ConditionalStatement, Expr, Func, Iden, Index, Order, Query, SqliteQueryBuilder,
Table,
};
use sea_query_rusqlite::RusqliteBinder;
use serde_json::{json, Value as Json};
use time::{
Expand Down Expand Up @@ -36,7 +39,8 @@ fn main() -> Result<()> {
.col(ColumnDef::new(Character::Meta).json())
.col(ColumnDef::new(Character::Created).date_time())
.build(SqliteQueryBuilder),
Index::create().name("partial_index_small_font")
Index::create()
.name("partial_index_small_font")
.table(Character::Table)
.col(Character::FontSize)
.and_where(Expr::col(Character::FontSize).lt(11).not())
Expand Down
3 changes: 2 additions & 1 deletion examples/sqlx_postgres/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use bigdecimal::{BigDecimal, FromPrimitive};
use chrono::{NaiveDate, NaiveDateTime};
use rust_decimal::Decimal;
use sea_query::{
ColumnDef, ConditionalStatement, Expr, Func, Iden, Index, OnConflict, Order, PostgresQueryBuilder, Query, Table,
ColumnDef, ConditionalStatement, Expr, Func, Iden, Index, OnConflict, Order,
PostgresQueryBuilder, Query, Table,
};
use sea_query_binder::SqlxBinder;
use sqlx::{PgPool, Row};
Expand Down
5 changes: 4 additions & 1 deletion examples/sqlx_sqlite/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use chrono::{NaiveDate, NaiveDateTime};
use sea_query::{ColumnDef, ConditionalStatement, Expr, Func, Iden, Index, OnConflict, Order, Query, SqliteQueryBuilder, Table};
use sea_query::{
ColumnDef, ConditionalStatement, Expr, Func, Iden, Index, OnConflict, Order, Query,
SqliteQueryBuilder, Table,
};
use sea_query_binder::SqlxBinder;
use serde_json::{json, Value as Json};
use sqlx::{Row, SqlitePool};
Expand Down

0 comments on commit eebae4f

Please sign in to comment.