Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debug_query macro make get raw_sql becomes simply. #189

Merged
merged 27 commits into from
Oct 4, 2021
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
4377bd4
add debug_query make get raw_sql becomes simply.
baoyachi Sep 23, 2021
8f08529
refactor code with macro debug_query!
baoyachi Sep 23, 2021
aa7e053
update doc
baoyachi Sep 23, 2021
10eeca1
add DbConnection with DebugQuey build overload method. Working for #145
baoyachi Sep 23, 2021
536a900
all rename with DbBackEnd
baoyachi Sep 24, 2021
9af9637
define IntoDbBackEnd trait
baoyachi Sep 24, 2021
849ffeb
fix build error
baoyachi Sep 24, 2021
a1bbb72
fix build error
baoyachi Sep 24, 2021
55ecf46
refactor code IntoDbBackend
baoyachi Sep 25, 2021
08f19cc
cargo fmt
baoyachi Sep 26, 2021
ba6d2d9
rename marco
baoyachi Sep 26, 2021
de0fd2a
Merge branch 'master' of github.com:SeaQL/sea-orm
baoyachi Sep 26, 2021
ece6b62
cargo fmt
baoyachi Sep 26, 2021
d2702dd
fix build test error
baoyachi Sep 27, 2021
fae268a
fix example build error
baoyachi Sep 27, 2021
b2bb259
remove warning
baoyachi Sep 27, 2021
9afd7dd
Merge branch 'adapter_url_scheme'
baoyachi Sep 27, 2021
37133d0
Merge branch 'master' of github.com:SeaQL/sea-orm
baoyachi Sep 27, 2021
1c0be92
Merge branch 'master' of github.com:SeaQL/sea-orm
baoyachi Sep 30, 2021
1083844
remove IntoDbBackend
baoyachi Oct 2, 2021
806f20b
Merge branch 'master' of github.com:SeaQL/sea-orm
baoyachi Oct 2, 2021
f987d3e
cargo fmt
baoyachi Oct 2, 2021
fa9999d
cargo fmt code
baoyachi Oct 2, 2021
bad6d0d
add DbBackend ref with DebugQuery
baoyachi Oct 2, 2021
1b3b5c4
update
baoyachi Oct 2, 2021
897a385
refactor code
baoyachi Oct 2, 2021
0c9334b
refactor code
baoyachi Oct 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix build error
  • Loading branch information
baoyachi committed Sep 24, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 849ffeb7d03ff6e6bbb34da8e4b4078bbfa4b66f
2 changes: 1 addition & 1 deletion src/database/statement.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::DbBackend;
use crate::{DbBackend, IntoDbBackend};
use sea_query::{inject_parameters, MysqlQueryBuilder, PostgresQueryBuilder, SqliteQueryBuilder};
pub use sea_query::{Value, Values};
use std::fmt;
4 changes: 1 addition & 3 deletions src/executor/delete.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use crate::{
error::*, ActiveModelTrait, DatabaseConnection, DeleteMany, DeleteOne, EntityTrait, Statement,
};
use crate::{error::*, ActiveModelTrait, DatabaseConnection, DeleteMany, DeleteOne, EntityTrait, Statement, IntoDbBackend};
use sea_query::DeleteStatement;
use std::future::Future;

5 changes: 1 addition & 4 deletions src/executor/insert.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use crate::{
error::*, ActiveModelTrait, DatabaseConnection, EntityTrait, Insert, PrimaryKeyTrait,
Statement, TryFromU64,
};
use crate::{error::*, ActiveModelTrait, DatabaseConnection, EntityTrait, Insert, PrimaryKeyTrait, Statement, TryFromU64, IntoDbBackend};
use sea_query::InsertStatement;
use std::{future::Future, marker::PhantomData};

2 changes: 1 addition & 1 deletion src/executor/paginator.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{error::*, DatabaseConnection, SelectorTrait};
use crate::{error::*, DatabaseConnection, SelectorTrait, IntoDbBackend};
use async_stream::stream;
use futures::Stream;
use sea_query::{Alias, Expr, SelectStatement};
6 changes: 1 addition & 5 deletions src/executor/select.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
use crate::{
error::*, DatabaseConnection, EntityTrait, FromQueryResult, IdenStatic, Iterable, JsonValue,
ModelTrait, Paginator, PrimaryKeyToColumn, QueryResult, Select, SelectA, SelectB, SelectTwo,
SelectTwoMany, Statement,
};
use crate::{error::*, DatabaseConnection, EntityTrait, FromQueryResult, IdenStatic, Iterable, JsonValue, ModelTrait, Paginator, PrimaryKeyToColumn, QueryResult, Select, SelectA, SelectB, SelectTwo, SelectTwoMany, Statement, IntoDbBackend};
use sea_query::SelectStatement;
use std::marker::PhantomData;

4 changes: 1 addition & 3 deletions src/executor/update.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use crate::{
error::*, ActiveModelTrait, DatabaseConnection, EntityTrait, Statement, UpdateMany, UpdateOne,
};
use crate::{error::*, ActiveModelTrait, DatabaseConnection, EntityTrait, Statement, UpdateMany, UpdateOne, IntoDbBackend};
use sea_query::UpdateStatement;
use std::future::Future;

2 changes: 1 addition & 1 deletion src/query/traits.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{DatabaseConnection, DbBackend, Statement};
use crate::{DatabaseConnection, DbBackend, Statement, IntoDbBackend};
use sea_query::QueryStatementBuilder;

pub trait QueryTrait {