@@ -483,10 +483,7 @@ impl Expr {
483
483
/// use sea_query::{tests_cfg::*, *};
484
484
///
485
485
/// let query = Query::select()
486
- /// .expr(Expr::cust_with_values(
487
- /// "data @? ($1::JSONPATH)",
488
- /// ["hello"],
489
- /// ))
486
+ /// .expr(Expr::cust_with_values("data @? ($1::JSONPATH)", ["hello"]))
490
487
/// .to_owned();
491
488
///
492
489
/// assert_eq!(
@@ -1912,19 +1909,14 @@ impl Expr {
1912
1909
/// # Examples
1913
1910
///
1914
1911
/// ```
1915
- /// use sea_query::{*, tests_cfg::*};
1912
+ /// use sea_query::{tests_cfg::*, *};
1916
1913
///
1917
1914
/// let query = Query::select()
1918
1915
/// .column(Char::Id)
1919
1916
/// .from(Char::Table)
1920
- /// .and_where(
1921
- /// Expr::col(Char::Id)
1922
- /// .eq(
1923
- /// Expr::any(
1924
- /// Query::select().column(Char::Id).from(Char::Table).take()
1925
- /// )
1926
- /// )
1927
- /// )
1917
+ /// .and_where(Expr::col(Char::Id).eq(Expr::any(
1918
+ /// Query::select().column(Char::Id).from(Char::Table).take(),
1919
+ /// )))
1928
1920
/// .to_owned();
1929
1921
///
1930
1922
/// assert_eq!(
@@ -1948,19 +1940,14 @@ impl Expr {
1948
1940
/// # Examples
1949
1941
///
1950
1942
/// ```
1951
- /// use sea_query::{*, tests_cfg::*};
1943
+ /// use sea_query::{tests_cfg::*, *};
1952
1944
///
1953
1945
/// let query = Query::select()
1954
1946
/// .column(Char::Id)
1955
1947
/// .from(Char::Table)
1956
- /// .and_where(
1957
- /// Expr::col(Char::Id)
1958
- /// .ne(
1959
- /// Expr::some(
1960
- /// Query::select().column(Char::Id).from(Char::Table).take()
1961
- /// )
1962
- /// )
1963
- /// )
1948
+ /// .and_where(Expr::col(Char::Id).ne(Expr::some(
1949
+ /// Query::select().column(Char::Id).from(Char::Table).take(),
1950
+ /// )))
1964
1951
/// .to_owned();
1965
1952
///
1966
1953
/// assert_eq!(
@@ -2238,14 +2225,11 @@ impl Expr {
2238
2225
/// # Examples
2239
2226
///
2240
2227
/// ```
2241
- /// use sea_query::{Query, Expr , PostgresQueryBuilder, MysqlQueryBuilder , SqliteQueryBuilder};
2228
+ /// use sea_query::{Expr, MysqlQueryBuilder , PostgresQueryBuilder, Query , SqliteQueryBuilder};
2242
2229
///
2243
2230
/// let query = Query::select().expr(Expr::current_date()).to_owned();
2244
2231
///
2245
- /// assert_eq!(
2246
- /// query.to_string(MysqlQueryBuilder),
2247
- /// r#"SELECT CURRENT_DATE"#
2248
- /// );
2232
+ /// assert_eq!(query.to_string(MysqlQueryBuilder), r#"SELECT CURRENT_DATE"#);
2249
2233
/// assert_eq!(
2250
2234
/// query.to_string(PostgresQueryBuilder),
2251
2235
/// r#"SELECT CURRENT_DATE"#
@@ -2264,14 +2248,11 @@ impl Expr {
2264
2248
/// # Examples
2265
2249
///
2266
2250
/// ```
2267
- /// use sea_query::{Query, Expr , PostgresQueryBuilder, MysqlQueryBuilder , SqliteQueryBuilder};
2251
+ /// use sea_query::{Expr, MysqlQueryBuilder , PostgresQueryBuilder, Query , SqliteQueryBuilder};
2268
2252
///
2269
2253
/// let query = Query::select().expr(Expr::current_time()).to_owned();
2270
2254
///
2271
- /// assert_eq!(
2272
- /// query.to_string(MysqlQueryBuilder),
2273
- /// r#"SELECT CURRENT_TIME"#
2274
- /// );
2255
+ /// assert_eq!(query.to_string(MysqlQueryBuilder), r#"SELECT CURRENT_TIME"#);
2275
2256
/// assert_eq!(
2276
2257
/// query.to_string(PostgresQueryBuilder),
2277
2258
/// r#"SELECT CURRENT_TIME"#
@@ -2290,7 +2271,7 @@ impl Expr {
2290
2271
/// # Examples
2291
2272
///
2292
2273
/// ```
2293
- /// use sea_query::{Query, Expr , PostgresQueryBuilder, MysqlQueryBuilder , SqliteQueryBuilder};
2274
+ /// use sea_query::{Expr, MysqlQueryBuilder , PostgresQueryBuilder, Query , SqliteQueryBuilder};
2294
2275
///
2295
2276
/// let query = Query::select().expr(Expr::current_timestamp()).to_owned();
2296
2277
///
0 commit comments