commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
f827b75334292328712968c08bc15cef9127760c
Dmitrii Aleksandrov
2025-08-13T16:58:34
Refactor conversions around qualified identifiers (#953) There was some annoying repetition in this area. `TableName` and `ColumnName` each had three copy-pasted `From` impls. Now they have one, which will be easier to copy-paste when I add `TypeName` and `FunctionName`. I came up with this while re-doing https://gith...
diff --git a/src/types.rs b/src/types/mod.rs similarity index 93% rename from src/types.rs rename to src/types/mod.rs index 4e2092f..0ba1274 100644 --- a/src/types.rs +++ b/src/types/mod.rs @@ -8,6 +8,10 @@ use crate::extension::postgres::PgBinOper; #[cfg(feature = "backend-sqlite")] use crate::extension::sqlite::Sql...
2
122
79
a181395bff1d63a3b0f61e7c42b507fe0f69b0a5
Chris Tsang
2025-08-12T09:54:08
Fix build
diff --git a/src/backend/mod.rs b/src/backend/mod.rs index b4cb486..af42107 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -61,16 +61,17 @@ pub trait QuotedBuilder { } } -pub(crate) fn need_escape(s: &str) -> bool { - s.chars().any(|c| { - matches!( - c, - '\r' | '\n...
4
87
87
babb0f0c242f2a4aec1aa73eef95325da1081382
狐狸
2025-08-12T09:37:52
perf: Remove unneeded allocations (#945) ## PR Info Remove unneeded allocations. Benchmark results show a significant performance improvement in query.to_string. ``` value/select_and_to_string::mysql time: [4.5816 µs 4.6076 µs 4.6429 µs...
diff --git a/src/backend/mod.rs b/src/backend/mod.rs index b472247..b4cb486 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -43,34 +43,57 @@ pub trait QuotedBuilder { /// To prepare iden and write to SQL. fn prepare_iden(&self, iden: &DynIden, sql: &mut dyn SqlWriter) { let q = self.quote...
6
246
207
78a98baedefd3a0e5fe9d0a20f6d9cffa4c7468e
Chris Tsang
2025-08-07T12:12:52
Fix examples
diff --git a/examples/sqlx_any/src/main.rs b/examples/sqlx_any/src/main.rs index 4e574fd..bfcf5f7 100644 --- a/examples/sqlx_any/src/main.rs +++ b/examples/sqlx_any/src/main.rs @@ -6,7 +6,7 @@ use sea_query::{ use sqlx::{AnyPool, Row}; use std::env; -use sea_query_binder::SqlxBinder; +use sea_query_sqlx::SqlxBinder...
4
4
4
9efef727065f05b909740afef6b69b6f137c0e00
狐狸
2025-08-06T12:54:16
Merge `Func`/`Function` and `PgFunc`/`PgFunction` (#944) ## PR Info The former is just a static method namespace for function construction. ## Changes - Merge `Func`/`Function` and `PgFunc`/`PgFunction`
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index 4626cdf..62f9239 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -111,31 +111,31 @@ impl QueryBuilder for PostgresQueryBuilder { query.prepare_statement(self, sql); } - fn prepare_functi...
4
161
166
1ef3f63a722e87d8170a0c9fc9a62666c1434e79
Chris Tsang
2025-08-04T22:19:47
Improve doc test
diff --git a/src/extension/postgres/expr.rs b/src/extension/postgres/expr.rs index b844f64..a4079ff 100644 --- a/src/extension/postgres/expr.rs +++ b/src/extension/postgres/expr.rs @@ -11,15 +11,25 @@ pub trait PgExpr: ExprTrait { /// use sea_query::{extension::postgres::PgExpr, tests_cfg::*, *}; /// ///...
1
16
5
158f0917063d32dfa9a9421f93927abde05fbba1
Chris Tsang
2025-08-03T23:11:11
Use lowercase type name
diff --git a/src/backend/postgres/table.rs b/src/backend/postgres/table.rs index 3f12c0b..a3ca1f4 100644 --- a/src/backend/postgres/table.rs +++ b/src/backend/postgres/table.rs @@ -243,9 +243,9 @@ impl TableBuilder for PostgresQueryBuilder { impl PostgresQueryBuilder { fn prepare_column_auto_increment(&self, colu...
5
15
15
2931882f2216de9929198c5434804981f250dc5f
Chris Tsang
2025-08-02T23:29:45
Box large jiff types
diff --git a/src/value.rs b/src/value.rs index 4ebc7e0..9feaf0c 100644 --- a/src/value.rs +++ b/src/value.rs @@ -280,15 +280,15 @@ pub enum Value { #[cfg(feature = "with-jiff")] #[cfg_attr(docsrs, doc(cfg(feature = "with-jiff")))] - JiffDateTime(Option<jiff::civil::DateTime>), + JiffDateTime(Option<Bo...
2
22
19
fd7a1ccdae14a397fb7b949295e670fdf2dc664f
Chris Tsang
2025-08-02T22:06:56
Fix test
diff --git a/src/value/tests.rs b/src/value/tests.rs index f625697..91c78db 100644 --- a/src/value/tests.rs +++ b/src/value/tests.rs @@ -284,7 +284,7 @@ fn test_chrono_query() { let query = Query::select().expr(timestamp).to_owned(); - let formatted = "2020-01-01 02:02:02 +08:00"; + let formatted = "2020...
1
1
1
4e83a97447ba52354eea3f609a45effde6bbe020
狐狸
2025-08-02T14:22:00
Improve PgBinOper docs (#916) <!-- Thank you for contributing to this project! If you need any help please feel free to contact us on Discord: https://discord.com/invite/uCPdDXzbdv Or, mention our core members by typing `@GitHub_Handle` on any issue / PR Add some test cases! It help reviewers to understand the beha...
diff --git a/src/extension/postgres/mod.rs b/src/extension/postgres/mod.rs index 4ba07d7..b7444f5 100644 --- a/src/extension/postgres/mod.rs +++ b/src/extension/postgres/mod.rs @@ -23,30 +23,50 @@ pub(crate) mod types; pub enum PgBinOper { ILike, NotILike, + /// `@@`. Full-text search match Matches, ...
1
24
4
50d2029ce0613af86ab1d3dd09e54133f008c657
狐狸
2025-08-02T10:46:09
Change `prepare_value` parameter from reference to owned value (#936) ## PR Info I noticed it takes a reference but clones inside. If ownership is needed, the caller should clone it instead. In addition, I removed the unnecessary clone in prepare_case_statement. ## Breaking Changes - [x] Change `QueryBuilder::prep...
diff --git a/src/backend/mysql/query.rs b/src/backend/mysql/query.rs index f931a04..e66bbf2 100644 --- a/src/backend/mysql/query.rs +++ b/src/backend/mysql/query.rs @@ -145,8 +145,8 @@ impl QueryBuilder for MysqlQueryBuilder { self.prepare_order(order_expr, sql); } - fn prepare_value(&self, value: &V...
5
26
26
5df779a2525581fedb037906dff69f0a9a950b76
Chris Tsang
2025-08-02T10:22:46
rename feature to with-jiff
diff --git a/Cargo.toml b/Cargo.toml index 3f93bf4..bd4b7f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,7 +93,7 @@ all-types = [ "with-bigdecimal", "with-uuid", "with-time", - "with-juff", + "with-jiff", "with-ipnetwork", "with-mac_address", ] diff --git a/src/backend/query_builder.r...
5
69
69
1d510fb7b02faf6cca973d93de8eddfa8db65111
Chris Tsang
2025-08-02T10:20:29
rename feature to with-jiff
diff --git a/Cargo.toml b/Cargo.toml index 3710c58..3f93bf4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,7 +93,7 @@ all-types = [ "with-bigdecimal", "with-uuid", "with-time", - "jiff", + "with-juff", "with-ipnetwork", "with-mac_address", ] diff --git a/src/backend/query_builder.rs b/s...
5
69
69
80d4da6f4aad3d36640ef1d5e5ec10abbf85d9d4
狐狸
2025-08-02T10:19:13
Support jiff (#941) <!-- Thank you for contributing to this project! If you need any help please feel free to contact us on Discord: https://discord.com/invite/uCPdDXzbdv Or, mention our core members by typing `@GitHub_Handle` on any issue / PR Add some test cases! It help reviewers to understand the behaviour and ...
diff --git a/Cargo.toml b/Cargo.toml index 86e6f3d..3710c58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,7 @@ rust_decimal = { version = "1", default-features = false, optional = true } bigdecimal = { version = "0.4", default-features = false, optional = true } uuid = { version = "1", default-features = fals...
6
319
2
19b2783ca2db4b7f7c952d836c7631f8ba0aaa2a
Chris Tsang
2025-08-01T17:22:09
1.0.0-rc.7
diff --git a/Cargo.toml b/Cargo.toml index 0315957..86e6f3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "1.0.0-rc.5" +version = "1.0.0-rc.7" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy.1...
4
7
7
eb3454b55877400fd09856e90b49609ecc53dfb7
Luis
2025-08-01T17:08:12
Update rusqlite version (#937) ## PR Info This pull request updates rusqlite version to the latest. ## Changes - [x] Update rusqlite version
diff --git a/examples/rusqlite/Cargo.toml b/examples/rusqlite/Cargo.toml index 98a7596..f0a59a8 100644 --- a/examples/rusqlite/Cargo.toml +++ b/examples/rusqlite/Cargo.toml @@ -13,8 +13,8 @@ chrono = { version = "0.4", default-features = false, features = ["clock"] } time = { version = "0.3.36", features = ["parsing",...
2
5
5
6f70bf31196a712367d577714dcc80441226800c
狐狸
2025-07-31T22:25:12
Fix incorrect casting from `DateTime<Local>` to `ChronoDateTimeWithTimeZone` in `Value::Array` (#933) ## PR Info - Closes #662 ## Bug Fixes - [x] Fix incorrect casting from `DateTime<Local>` to `ChronoDateTimeWithTimeZone` in `Value::Array`
diff --git a/sea-query-binder/src/sqlx_postgres.rs b/sea-query-binder/src/sqlx_postgres.rs index 243350d..6402de5 100644 --- a/sea-query-binder/src/sqlx_postgres.rs +++ b/sea-query-binder/src/sqlx_postgres.rs @@ -1,7 +1,7 @@ #[cfg(feature = "with-bigdecimal")] use bigdecimal::BigDecimal; #[cfg(feature = "with-chrono...
1
2
2
a98578f3642402c218943bd4118761e7e730e31f
Chris Tsang
2025-07-31T14:57:10
Value: box BigDecimal and Array (#931) These two types are already internally heap-allocated. And boxing these two would bring down Value to 32 bytes. I hope this is a fair trade off.
diff --git a/sea-query-binder/src/sqlx_mysql.rs b/sea-query-binder/src/sqlx_mysql.rs index a817d21..5275f65 100644 --- a/sea-query-binder/src/sqlx_mysql.rs +++ b/sea-query-binder/src/sqlx_mysql.rs @@ -100,7 +100,7 @@ impl sqlx::IntoArguments<'_, sqlx::mysql::MySql> for SqlxValues { } #...
5
65
22
d91b159a646cedcc8ac2cc1f59a3e6110f3bc884
Dmitrii Aleksandrov
2025-07-30T13:35:26
Remove `SeaRc::new` from docs and internal code (#923)
diff --git a/src/extension/postgres/types.rs b/src/extension/postgres/types.rs index 83f1d16..e702c56 100644 --- a/src/extension/postgres/types.rs +++ b/src/extension/postgres/types.rs @@ -264,10 +264,7 @@ impl TypeDropStatement { /// assert_eq!( /// Type::drop() /// .if_exists() - /// ...
9
95
106
9c3e3ea4596ced43a7fda5b5364ff620a91998ba
狐狸
2025-07-29T09:31:25
Fix serializing iden as a value in `ALTER TYPE ... RENAME TO ...` statements (#924) <!-- Thank you for contributing to this project! If you need any help please feel free to contact us on Discord: https://discord.com/invite/uCPdDXzbdv Or, mention our core members by typing `@GitHub_Handle` on any issue / PR Add so...
diff --git a/src/backend/postgres/types.rs b/src/backend/postgres/types.rs index 3ec126d..7336366 100644 --- a/src/backend/postgres/types.rs +++ b/src/backend/postgres/types.rs @@ -113,7 +113,7 @@ impl PostgresQueryBuilder { } TypeAlterOpt::Rename(new_name) => { write!(sql, " ...
2
3
3
07a9dece9eba91dad026ca165a495099fce03242
Dmitrii Aleksandrov
2025-07-23T12:20:02
clippy fix
diff --git a/src/extension/postgres/expr.rs b/src/extension/postgres/expr.rs index d434a6a..b844f64 100644 --- a/src/extension/postgres/expr.rs +++ b/src/extension/postgres/expr.rs @@ -1,5 +1,5 @@ use super::PgBinOper; -use crate::{ColumnRef, Expr, ExprTrait, FunctionCall, IntoLikeExpr, Keyword, LikeExpr, Value}; +use...
2
2
2
26c7a41cac6f6c5fa9a06ed0c4ca67bf8c74d9e0
Eugene Korir
2025-07-22T10:45:55
Fix typo (#913)
diff --git a/src/types.rs b/src/types.rs index 1ad080e..96eeb0a 100644 --- a/src/types.rs +++ b/src/types.rs @@ -55,7 +55,7 @@ pub trait Iden { /// Write a raw identifier string without quotes. /// - /// We indentionally don't reuse [`Display`][std::fmt::Display] for + /// We intentionally don't reuse...
1
1
1
93a5ab2a77aedc4aa7af2c39f6e7fd3ba60c0ccb
Chris Tsang
2025-07-19T11:16:24
1.0.0-rc.5
diff --git a/Cargo.toml b/Cargo.toml index 67257f3..145058e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "1.0.0-rc.4" +version = "1.0.0-rc.5" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy.1...
2
3
3
aef5d8ae430922fe1aa9828471808a7732dfcafa
Chris Tsang
2025-07-18T20:51:23
Add DynIden::inner
diff --git a/src/types.rs b/src/types.rs index bbd84f1..1ad080e 100644 --- a/src/types.rs +++ b/src/types.rs @@ -75,6 +75,12 @@ pub trait IdenStatic: Iden + Copy + 'static { #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub struct DynIden(pub(crate) Cow<'static, str>); +impl DynIden { + pub fn inner(&self) -> Cow...
1
6
0
d088afc106b4eb4e01cfc669f83732634d7cae23
Chris Tsang
2025-07-18T20:46:13
impl Iden for Alias
diff --git a/src/types.rs b/src/types.rs index 67e4b33..bbd84f1 100644 --- a/src/types.rs +++ b/src/types.rs @@ -623,9 +623,13 @@ impl Alias { } } -impl IntoIden for Alias { - fn into_iden(self) -> DynIden { - DynIden(Cow::Owned(self.0)) +impl Iden for Alias { + fn quoted(&self) -> Cow<'static, str...
1
7
3
e1b29e5b258100dbdb81ce0048ca9b4231069c10
Chris Tsang
2025-07-18T20:28:14
Add SeaRc::clone
diff --git a/src/types.rs b/src/types.rs index 253daf6..67e4b33 100644 --- a/src/types.rs +++ b/src/types.rs @@ -100,6 +100,10 @@ impl SeaRc { { DynIden(i.quoted()) } + + pub fn clone(iden: &DynIden) -> DynIden { + iden.clone() + } } impl std::fmt::Display for DynIden {
1
4
0
52c574599c2aaca145b4aa608fd52b3262b3970d
Chris Tsang
2025-07-17T21:50:18
1.0.0-rc.4
diff --git a/Cargo.toml b/Cargo.toml index beb892d..67257f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "1.0.0-rc.3" +version = "1.0.0-rc.4" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy.1...
1
1
1
31416f217b1460d6536828a76cb32af924ee2d9c
Chris Tsang
2025-07-09T23:43:13
cleanup large enum variants (#906) * clippy? * cleanup TableRef
diff --git a/src/query/select.rs b/src/query/select.rs index 7f105c4..a0b99c9 100644 --- a/src/query/select.rs +++ b/src/query/select.rs @@ -1033,7 +1033,7 @@ impl SelectStatement { where T: IntoIden, { - self.from_from(TableRef::SubQuery(query, alias.into_iden())) + self.from_from(Tabl...
2
4
5
f778d36b7317a7851848115d7636099f2d177244
Kristopher Wuollett
2025-07-08T08:37:53
feat[sea-query-rusqlite]: update rusqlite version to 0.36 (#904)
diff --git a/examples/rusqlite/Cargo.toml b/examples/rusqlite/Cargo.toml index ae5f30d..98a7596 100644 --- a/examples/rusqlite/Cargo.toml +++ b/examples/rusqlite/Cargo.toml @@ -13,7 +13,7 @@ chrono = { version = "0.4", default-features = false, features = ["clock"] } time = { version = "0.3.36", features = ["parsing",...
2
2
2
c869b985752bd730e6c685abca5837d853a9ce1b
Chris Tsang
2025-07-08T08:23:18
Impl `Into<QueryStatement>` for `SelectStatement`, etc (#905) * Remove `into_sub_query_statement` from trait * Add back into_sub_query_statement
diff --git a/src/expr.rs b/src/expr.rs index fc5db58..2b3daa7 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -459,10 +459,7 @@ pub trait ExprTrait: Sized { /// ); /// ``` fn in_subquery(self, sel: SelectStatement) -> Expr { - self.binary( - BinOper::In, - Expr::SubQuery(None, ...
10
78
69
276dac38787bf91f9e7cda53780139ad7594609f
Chris Tsang
2025-07-06T11:14:43
Change method names for SeaORM internal uses
diff --git a/src/types.rs b/src/types.rs index 38a6c7f..4a3fb84 100644 --- a/src/types.rs +++ b/src/types.rs @@ -185,7 +185,7 @@ pub enum TableRef { impl TableRef { #[doc(hidden)] - pub fn table(&self) -> &DynIden { + pub fn sea_orm_table(&self) -> &DynIden { match self { TableRef::T...
1
2
2
824cbabc6f149aba9c657b539cec7ee3adbaa28c
Chris Tsang
2025-06-15T18:21:58
1.0.0-rc.3
diff --git a/Cargo.toml b/Cargo.toml index ef63ddc..20b33cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "1.0.0-rc.2" +version = "1.0.0-rc.3" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy.1...
1
1
1
535f76e37d4b38211a74545fcb824efd9d0fead7
Chris Tsang
2025-06-14T21:48:48
Add ValueTuple::arity
diff --git a/src/value.rs b/src/value.rs index 94debd0..b74cce6 100644 --- a/src/value.rs +++ b/src/value.rs @@ -1420,6 +1420,17 @@ impl Value { } } +impl ValueTuple { + pub fn arity(&self) -> usize { + match self { + Self::One(_) => 1, + Self::Two(_, _) => 2, + Self::...
1
11
0
fa15b0d1be0c70d6f1272be47be81514935da15b
Chris Tsang
2025-06-14T10:48:21
pub field of Alias (#899) So that we can now to `Alias(format!("abc{}"))`.
diff --git a/src/types.rs b/src/types.rs index b272756..38a6c7f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -320,7 +320,7 @@ pub enum Order { /// /// Nowadays, `&str` implements [`Iden`] and can be used directly. #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] -pub struct Alias(String); +pub struct...
1
1
1
e30ab98f3c2eebdfb081d11482f263db1bf246ee
Dmitrii Aleksandrov
2025-06-09T11:25:44
Don't qualify `ExprTrait` method calls needessly (#895)
diff --git a/src/expr.rs b/src/expr.rs index f1be2ac..9edf145 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -96,7 +96,7 @@ pub trait ExprTrait: Sized { where R: Into<SimpleExpr>, { - ExprTrait::binary(self, BinOper::Add, right) + self.binary(BinOper::Add, right) } /// Expres...
1
50
24
d77edc5499b7cc44f0671225541c90b954e9a6c3
Chris Tsang
2025-06-08T21:27:24
1.0.0-rc.2
diff --git a/Cargo.toml b/Cargo.toml index 2b957ed..ef63ddc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "1.0.0-rc.1" +version = "1.0.0-rc.2" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy.1...
1
1
1
b497cbe0daf0c02a3bd46006fd5593589881fa2b
Chris Tsang
2025-06-08T19:54:20
Remove from value
diff --git a/src/value.rs b/src/value.rs index 0b5722b..94debd0 100644 --- a/src/value.rs +++ b/src/value.rs @@ -35,7 +35,6 @@ use crate::{ColumnType, CommonSqlQueryBuilder, QueryBuilder, StringLen}; /// [`Value`] types variant for Postgres array #[derive(Clone, Debug, Eq, PartialEq, Hash)] -#[non_exhaustive] pub ...
1
0
2
fc6b65d92acf05e4fdd1a1e40193d72f781aa393
狐狸
2025-06-08T19:48:03
Add `non_exhaustive` to enums (#891) * Add `non_exhaustive` to `SimpleExpr` * Add `non_exhasutive` to more enum - func::Function - types::{ColumnRef, TableRef, UnOper, BinOper, Keyword, SubQueryOper} - value::{Value, ValueTuple} - extension::mysql::column::MySqlType - extension::postgres::func::PgFunction - extensio...
diff --git a/src/backend/foreign_key_builder.rs b/src/backend/foreign_key_builder.rs index f0aaedd..ae7bc98 100644 --- a/src/backend/foreign_key_builder.rs +++ b/src/backend/foreign_key_builder.rs @@ -1,6 +1,7 @@ use crate::*; #[derive(Debug, PartialEq, Eq)] +#[non_exhaustive] pub enum Mode { Creation, A...
26
108
0
ff7c22166e4e1feac3b06dbb2e35a35215235429
Dmitrii Aleksandrov
2025-06-08T07:22:06
Update expression docs (#894)
diff --git a/src/expr.rs b/src/expr.rs index 381634f..5f824dc 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1,17 +1,32 @@ //! Building blocks of SQL statements. //! -//! [`Expr`] representing the primitive building block in the expressions. +//! [`SimpleExpr`] is an arbitrary, dynamically-typed SQL expression. +//! ...
1
24
7
6f3133ffdb275c558c24fd71fb524d9e5169ba08
狐狸
2025-06-08T07:18:52
Fix invalid sql in doc test (#893)
diff --git a/src/query/select.rs b/src/query/select.rs index d75abb2..c80e34e 100644 --- a/src/query/select.rs +++ b/src/query/select.rs @@ -1482,45 +1482,45 @@ impl SelectStatement { /// /// let query = Query::select() /// .column(Char::Character) - /// .column((Font::Table, Font::Name)) + ...
1
9
9
9b2ab6913644581f53802c4e79d4ea07977246c9
Chris Tsang
2025-05-28T21:08:21
Bump dependent crates
diff --git a/sea-query-attr/Cargo.toml b/sea-query-attr/Cargo.toml index 4f88197..c6b9f30 100644 --- a/sea-query-attr/Cargo.toml +++ b/sea-query-attr/Cargo.toml @@ -26,5 +26,5 @@ darling = { version = "0.20", default-features = false } [dev-dependencies] trybuild = "1.0" -sea-query = { version = "1.0.0-rc.1", path ...
6
6
6
7858b37efb0544c558cdedc37d76ba8ef5cc24cb
Chris Tsang
2025-05-28T20:55:35
undeprecated method
diff --git a/src/expr.rs b/src/expr.rs index c10b97a..5da5de3 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1665,10 +1665,6 @@ impl SimpleExpr { /// ); /// ``` #[allow(clippy::self_named_constructors)] - #[deprecated( - since = "1.0.0-rc.1", - note = "Please use the [`SimpleExpr::new`] ...
1
0
4
4c485744b273c73c5402cfe50287943d3a200ad1
狐狸
2025-05-28T07:58:48
Unify `Expr` and `SimpleExpr` as one type (#889) * Remove `Expr`, re-export `Expr` as type alias of `SimpleExpr` * Use `Self` in types * Use `Self` in types * Make `SimpleExpr::new` public and remove `new_with_left` * Clippy * Update `since` * Update `since` * Update `since`
diff --git a/src/expr.rs b/src/expr.rs index a765fc4..c10b97a 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -6,14 +6,7 @@ use crate::{func::*, query::*, types::*, value::*}; -/// Helper to build a [`SimpleExpr`]. -#[derive(Debug, Clone)] -pub struct Expr { - pub(crate) left: SimpleExpr, - pub(crate) right: O...
4
97
514
8b7dffb422eafdea1750303fb4ba917c6c5f38f4
Chris Tsang
2025-05-27T09:31:11
Bump master
diff --git a/Cargo.toml b/Cargo.toml index 1e57dcb..2b957ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "0.32.6" +version = "1.0.0-rc.1" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy.123@g...
1
1
1
a6092baabf346473d04c05b716e6ac9372db4624
Dmitrii Aleksandrov
2025-05-20T20:50:02
impl From<Condition> and From<ConditionExpression> for SimpleExpr (#886)
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index b22ffca..175e66b 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -1389,7 +1389,7 @@ pub trait QueryBuilder: #[doc(hidden)] /// Translate part of a condition to part of a "WHERE" clause. fn prepa...
2
19
8
c81ca107eee4ca3469cdabffb7483714cf730672
Chris Tsang
2025-05-07T19:23:49
Handle case when default_values = 0
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index bd73589..b22ffca 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -30,7 +30,10 @@ pub trait QueryBuilder: self.prepare_table_ref(table, sql); } - if insert.default_values.is_some(...
1
4
1
ff7012c357bc01a1aa9bef53ee24a7f70ca960b6
MasakiMiyazaki
2025-05-07T17:58:53
Support for creating functional indexes in PostgreSQL and MySQL (#869) * feat: implement functional index for MySQL and Postgres query builders * refactor: refactor index column handling in IndexBuilder trait and implementations * test: remove unused table creation statement in create_9 test * docs: add example for...
diff --git a/src/backend/index_builder.rs b/src/backend/index_builder.rs index 2738913..b0ef761 100644 --- a/src/backend/index_builder.rs +++ b/src/backend/index_builder.rs @@ -56,6 +56,23 @@ pub trait IndexBuilder: QuotedBuilder + TableRefBuilder { } } + #[doc(hidden)] + /// Write the index colum...
9
316
17
8e83689d85f2e697154716c6cd91fdb4db3d007f
Chris Tsang
2025-05-07T17:14:50
Try fix ipnetwork conflict
diff --git a/Cargo.toml b/Cargo.toml index b27c68f..60a92ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ rust_decimal = { version = "1", default-features = false, optional = true } bigdecimal = { version = "0.4", default-features = false, optional = true } uuid = { version = "1", default-features = fals...
5
5
5
605165eb5b1dd91d8e9c36701cc257c0e5c999b5
Billy Chan
2025-05-02T12:05:29
Upgrade ipnetwork to 0.21
diff --git a/Cargo.toml b/Cargo.toml index 6acda0e..b27c68f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ rust_decimal = { version = "1", default-features = false, optional = true } bigdecimal = { version = "0.4", default-features = false, optional = true } uuid = { version = "1", default-features = fals...
7
7
7
aff77e858f56ef54526bd5c87978b4fbdab90c70
Dmitrii Aleksandrov
2025-04-17T21:37:20
Make `RcOrArc` a documented type alias instead of a direct reexport (#875)
diff --git a/src/types.rs b/src/types.rs index df63a63..887b08c 100644 --- a/src/types.rs +++ b/src/types.rs @@ -7,10 +7,19 @@ use std::{fmt, mem, ops}; use crate::extension::postgres::PgBinOper; #[cfg(feature = "backend-sqlite")] use crate::extension::sqlite::SqliteBinOper; + +/// A reference counted pointer: eithe...
1
11
2
f2b1564d915a737fc2caaccbe2ad98b5b69f27c3
Chris Tsang
2025-04-16T23:24:56
May be this would work
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index 43b34d8..15548a7 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -41,10 +41,16 @@ impl QueryBuilder for PostgresQueryBuilder { fn prepare_simple_expr(&self, simple_expr: &SimpleExpr, sql: &mut dyn Sql...
2
14
8
e017965c349249f108d069b18fa4175b000fde95
Chris Tsang
2025-04-16T20:36:48
Add Value::dummy_value
diff --git a/src/value.rs b/src/value.rs index e2e2f02..5e7c6c3 100644 --- a/src/value.rs +++ b/src/value.rs @@ -398,6 +398,110 @@ impl Value { Self::MacAddress(_) => Self::MacAddress(None), } } + + /// Get a default value of self's type + /// + /// ``` + /// use sea_query::Value;...
1
104
0
4f66c6a68a8254e5059bc35df5bf5a6d395a962e
Nuno Faria
2025-04-16T19:53:38
Add support for temporary tables (#878)
diff --git a/src/backend/table_builder.rs b/src/backend/table_builder.rs index 1a2056c..7520afd 100644 --- a/src/backend/table_builder.rs +++ b/src/backend/table_builder.rs @@ -9,7 +9,11 @@ pub trait TableBuilder: create: &TableCreateStatement, sql: &mut dyn SqlWriter, ) { - write!(sql, "C...
5
99
1
e68732430bc7eb975ba42b7cd2fd2d08f2f89dd4
Heikel Bouzayene
2025-04-16T19:42:28
fix: make AsEnum quoted to get the correct enum in postgres (#860) * fix: make AsEnum quoted to get the correct enum in postgres * fix: use Into<Quote> instead of Quote
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index 7474408..43b34d8 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -41,7 +41,9 @@ impl QueryBuilder for PostgresQueryBuilder { fn prepare_simple_expr(&self, simple_expr: &SimpleExpr, sql: &mut dyn SqlWr...
1
3
1
8181c6180855847c687a832eae3b771c1e972ae3
Dmitrii Aleksandrov
2025-04-16T19:36:07
Add more docs (#874)
diff --git a/src/extension/postgres/expr.rs b/src/extension/postgres/expr.rs index 8c4e894..eccf366 100644 --- a/src/extension/postgres/expr.rs +++ b/src/extension/postgres/expr.rs @@ -3,6 +3,7 @@ use crate::{ ColumnRef, Expr, ExprTrait, FunctionCall, IntoLikeExpr, Keyword, LikeExpr, SimpleExpr, Value, }; +/// ...
7
27
9
dc72aea757bfdad6a7868c60a89a307b86b2bc82
Chris Tsang
2025-03-16T19:46:12
sea-query-derive 0.4.3
diff --git a/sea-query-derive/Cargo.toml b/sea-query-derive/Cargo.toml index 2f7dda9..d24d383 100644 --- a/sea-query-derive/Cargo.toml +++ b/sea-query-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sea-query-derive" -version = "0.4.2" +version = "0.4.3" authors = [ "Follpvosten <wolfi@karpador.xyz>", "Rene Leve...
1
1
1
905a99713d62dad5822b5515f8906713186f9565
Chris Tsang
2025-03-16T18:38:54
More docs
diff --git a/src/query/update.rs b/src/query/update.rs index b26e9bb..308700a 100644 --- a/src/query/update.rs +++ b/src/query/update.rs @@ -69,7 +69,12 @@ impl UpdateStatement { self } - /// From table. + /// Update using data from another table (`UPDATE .. FROM ..`). + /// + /// # MySQL No...
1
6
1
5f6d189d7336500b8893ab1134eeef8726db5108
Chris Tsang
2025-03-16T18:27:23
More tests
diff --git a/src/extension/postgres/select.rs b/src/extension/postgres/select.rs index 548dffb..080156f 100644 --- a/src/extension/postgres/select.rs +++ b/src/extension/postgres/select.rs @@ -40,6 +40,17 @@ impl PostgresSelectStatementExt for SelectStatement { /// query.to_string(PostgresQueryBuilder), /...
1
11
0
4039fcc00bba07346e53913b4a000ff978f139a6
tison
2025-03-16T17:53:37
feat: support table sample for postgres backend (#865) * feat: support custom table ref builder Signed-off-by: tison <wander4096@gmail.com> * add test case Signed-off-by: tison <wander4096@gmail.com> * fixup Signed-off-by: tison <wander4096@gmail.com> * refactor: as table_sample Signed-off-by: tison <wander4096...
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index 89f7726..7474408 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -139,6 +139,21 @@ impl QueryBuilder for PostgresQueryBuilder { } } + fn prepare_table_sample(&self, select: &SelectStatem...
5
82
0
190125c00058c82241ae170e48ba06843ec3fd03
Julian Popescu
2025-03-16T17:23:19
feat: allow a USING clause for alter table column type in postgres (#848)
diff --git a/src/backend/postgres/table.rs b/src/backend/postgres/table.rs index a1a3e2f..bf2f5c2 100644 --- a/src/backend/postgres/table.rs +++ b/src/backend/postgres/table.rs @@ -143,7 +143,9 @@ impl TableBuilder for PostgresQueryBuilder { if !first && !matches!( ...
3
37
1
dc84cb7527b4e7abee38f82e9fe41a6cb2b3845e
BeowulfR
2025-03-13T20:33:00
Update thiserror and ordered-float (#866)
diff --git a/Cargo.toml b/Cargo.toml index 956b5e4..15125b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ uuid = { version = "1", default-features = false, optional = true } time = { version = "0.3.36", default-features = false, optional = true, features = ["macros", "formatting"] } ipnetwork = { version...
2
2
2
90283ad1fec6931dabbd0235f8d319752d9144b3
Chris Tsang
2025-02-19T23:30:25
Add more tests
diff --git a/src/expr.rs b/src/expr.rs index 3c44d3b..1767d02 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -3299,6 +3299,32 @@ impl Expr { /// r#"SELECT "font_size" FROM "character""# /// ); /// + /// struct TextArray; + /// + /// impl Iden for TextArray { + /// fn unquoted(&self, s:...
1
26
0
7bf998057050f2a06ca70ba3a5d090746fde29c4
Tim Bates
2025-02-16T17:18:30
Add with_cte to include WITH clauses in Statements (#859)
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index a4f0b44..a13db77 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -18,6 +18,10 @@ pub trait QueryBuilder: /// Translate [`InsertStatement`] into SQL statement. fn prepare_insert_statement(&self, ins...
7
289
0
4e2a524f6d5c8078f1c6ec7b469310a7bb56ad3b
Zhang Yao
2025-02-16T12:37:26
feat(function): Add support for Postgres function: `ARRAY_AGG` (#846) Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index 328c196..89f7726 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -124,6 +124,7 @@ impl QueryBuilder for PostgresQueryBuilder { PgFunction::GenRandomUUID => "GEN_RANDOM_UUID", ...
2
54
0
13b443e0d6f20a2112f5b6bac08d1b090185ebf6
Chris Tsang
2025-02-16T11:48:37
Refactor
diff --git a/src/backend/index_builder.rs b/src/backend/index_builder.rs index e648646..2738913 100644 --- a/src/backend/index_builder.rs +++ b/src/backend/index_builder.rs @@ -80,8 +80,4 @@ pub trait IndexBuilder: QuotedBuilder + TableRefBuilder { #[doc(hidden)] // Write WHERE clause for partial index. This ...
2
2
4
8c40438833f66b8f0b5d0e7086b31c494cf4c468
MasakiMiyazaki
2025-02-16T11:33:39
implement (#826)
diff --git a/src/backend/index_builder.rs b/src/backend/index_builder.rs index 2738913..e648646 100644 --- a/src/backend/index_builder.rs +++ b/src/backend/index_builder.rs @@ -80,4 +80,8 @@ pub trait IndexBuilder: QuotedBuilder + TableRefBuilder { #[doc(hidden)] // Write WHERE clause for partial index. This ...
5
107
0
e03e987fd20a0d1241feba30bf5fc0dbcf3dca34
Diptesh Choudhuri
2025-02-16T11:19:17
Add Postgre function: `DATE_TRUNC` (#825) * feat: add strum deps * feat: add `date_trunc` postgres function * chore: format doc tests * chore: rename enum * build: revert cargo.toml changes * feat: implement display for `PgDateTruncUnit` manually * chore: use prefix
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index f065011..328c196 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -124,6 +124,7 @@ impl QueryBuilder for PostgresQueryBuilder { PgFunction::GenRandomUUID => "GEN_RANDOM_UUID", ...
3
83
1
b189333352aadfe3023397c1321cd39c765013fc
Chris Tsang
2025-02-15T19:55:25
Support MySQL
diff --git a/src/backend/mysql/query.rs b/src/backend/mysql/query.rs index 8180fe7..228342d 100644 --- a/src/backend/mysql/query.rs +++ b/src/backend/mysql/query.rs @@ -6,10 +6,6 @@ impl QueryBuilder for MysqlQueryBuilder { "ROW" } - fn prepare_update_from_table_refs(&self, _: &[TableRef], _: &mut dy...
3
94
27
1e1542ad3f9c6049418dbb7c1e66d036e90251ed
Mark S.
2025-02-15T18:09:48
feat: support `UPDATE ... FROM ...` syntax (#833) * feat: support `UPDATE SET ... FROM table ...` * docs: update MySQL-specific example in `UpdateStatement::from` docstring * chore: split dialect-specific syntax handling into discrete method for `UPDATE ... FROM ...` behavior
diff --git a/src/backend/mysql/query.rs b/src/backend/mysql/query.rs index 5812601..8180fe7 100644 --- a/src/backend/mysql/query.rs +++ b/src/backend/mysql/query.rs @@ -6,6 +6,10 @@ impl QueryBuilder for MysqlQueryBuilder { "ROW" } + fn prepare_update_from_table_refs(&self, _: &[TableRef], _: &mut dy...
3
83
2
3d895b20c0b36a4d3a47fca435d85cf6cb7ae31f
tison
2025-02-15T17:53:04
fix: build empty postgres-array with auto type infer (#854) Signed-off-by: tison <wander4096@gmail.com>
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index 41cac86..a4f0b44 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -1104,15 +1104,21 @@ pub trait QueryBuilder: #[cfg(feature = "with-uuid")] Value::Uuid(Some(v)) => write!(s, "'{v}'")....
3
30
10
12639c22c3fecd2f7af55a23c0ecb88aee56642f
tison
2025-02-02T22:49:46
feat: add Expr::column (#852) Signed-off-by: tison <wander4096@gmail.com>
diff --git a/src/expr.rs b/src/expr.rs index b6894c9..c96ac5e 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1482,6 +1482,62 @@ impl Expr { Self::new_with_left(n.into_column_ref()) } + /// Express the target column without table prefix, returning a [`SimpleExpr`]. + /// + /// # Examples + //...
1
56
0
207cffd07392174fd4b8b4bc26a7a220e23541b0
Chris Tsang
2024-12-01T19:25:00
Revert "Changelog" This reverts commit 3882a01fdc9327cbfb9bc45bbeecee304b158a2a.
diff --git a/Cargo.toml b/Cargo.toml index b5f076c..698cc47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "0.32.1" +version = "0.32.0" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy.123@gmail...
1
1
1
3882a01fdc9327cbfb9bc45bbeecee304b158a2a
Chris Tsang
2024-12-01T19:19:57
Changelog
diff --git a/Cargo.toml b/Cargo.toml index 698cc47..b5f076c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "0.32.0" +version = "0.32.1" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy.123@gmail...
1
1
1
caee3b2495da99a0e6c3f4ab41b6a19622800200
Quentin
2024-12-01T18:10:10
feat(function): Add support for GREATEST / LEAST function (#844) Signed-off-by: MATILLAT Quentin <qmatillat@gmail.com>
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index e6ee781..41cac86 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -666,6 +666,8 @@ pub trait QueryBuilder: Function::Coalesce => "COALESCE", Function::Count => "COUNT",...
3
94
0
f914cc300aa89b67503d35390e63ef29caf04a4e
xxchan
2024-12-01T17:59:35
feat: add bitwise and/or operators (#841) Signed-off-by: xxchan <xxchan22f@gmail.com>
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index 8d80a7d..e6ee781 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -589,6 +589,8 @@ pub trait QueryBuilder: BinOper::As => "AS", BinOper::Escape => "ESCAPE", Bi...
3
70
0
67713263e4ddc4efc3629bce2425af6a50c481db
Andrew Baxter
2024-12-01T17:46:26
Fix #830, remove restriction on recursive CTE (#835) * Fix #830, remove incorrect restriction on recursive CTE I tested this with sqlite and the queries execute successfully. It's possible that there are other incorrect behaviors that can be pre-emptively caught, perhaps those could be added in a new PR later. ...
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index f2465fe..8d80a7d 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -774,15 +774,6 @@ pub trait QueryBuilder: "Cannot build a with query that has no common table expression!" ); - i...
2
44
9
81117a75b6376844b8ea3571ae500a56eaf14786
Billy Chan
2024-12-01T17:45:46
Added `ValueType::enum_type_name()` to signify enum types (#836)
diff --git a/src/value.rs b/src/value.rs index b1ef142..7a7ac30 100644 --- a/src/value.rs +++ b/src/value.rs @@ -237,6 +237,10 @@ pub trait ValueType: Sized { fn array_type() -> ArrayType; fn column_type() -> ColumnType; + + fn enum_type_name() -> Option<&'static str> { + None + } } #[deriv...
1
4
0
73be1f76e7ae7639e1723d8452ff785316cd2d9d
Chris Tsang
2024-12-01T17:12:26
Add `Value::as_null`
diff --git a/src/value.rs b/src/value.rs index 7d6236a..40e293b 100644 --- a/src/value.rs +++ b/src/value.rs @@ -290,6 +290,107 @@ impl Value { { T::expect(self, msg) } + + /// Get the null variant of self + /// + /// ``` + /// use sea_query::Value; + /// + /// let v = Value::Int(So...
1
101
0
ea1d9faf71bd78ee03056d99d55641bf36388fd4
Hamir Mahal
2024-11-28T09:53:13
refactor: remove unnecessary string hashes (#815) * refactor: remove unnecessary string hashes * fix: formatting in `src/types.rs` * refactor: restore `#` for consistent formatting in specific spots * refactor: restore stylistic changes in `table.rs`
diff --git a/src/token.rs b/src/token.rs index 44ddf62..1d0ee97 100644 --- a/src/token.rs +++ b/src/token.rs @@ -454,7 +454,7 @@ mod tests { #[test] fn test_9() { - let string = r#"[ab] "#; + let string = r"[ab] "; let tokenizer = Tokenizer::new(string); let tokens: Vec<Token...
5
101
104
ff8f58a8613417a818cf09efda32374276d1c82c
Chris Tsang
2024-11-27T10:03:22
Add example for SET NULL
diff --git a/src/query/update.rs b/src/query/update.rs index b267e81..a514127 100644 --- a/src/query/update.rs +++ b/src/query/update.rs @@ -132,6 +132,24 @@ impl UpdateStatement { /// query.to_string(SqliteQueryBuilder), /// r#"UPDATE "glyph" SET "aspect" = 60 * 24 * 24, "image" = '24B0E11951B03B07F8...
1
18
0
e4c224cf85295d08fdc4a03eb2b1188569874575
Billy Chan
2024-10-17T07:04:24
sea-query-postgres 0.5.0
diff --git a/sea-query-postgres/Cargo.toml b/sea-query-postgres/Cargo.toml index 6d05411..757b5f4 100644 --- a/sea-query-postgres/Cargo.toml +++ b/sea-query-postgres/Cargo.toml @@ -3,7 +3,7 @@ [package] name = "sea-query-postgres" -version = "0.5.0-rc.1" +version = "0.5.0" authors = [ "Ivan Krivosheev <py.krivoshe...
1
1
1
ce85a108f2b3721c3e9aaf6026efdda394beb9dd
Billy Chan
2024-10-17T07:04:06
sea-query-rusqlite 0.7.0
diff --git a/sea-query-rusqlite/Cargo.toml b/sea-query-rusqlite/Cargo.toml index 47d1642..338c09a 100644 --- a/sea-query-rusqlite/Cargo.toml +++ b/sea-query-rusqlite/Cargo.toml @@ -3,7 +3,7 @@ [package] name = "sea-query-rusqlite" -version = "0.7.0-rc.2" +version = "0.7.0" authors = [ "Ivan Krivosheev <py.krivoshe...
1
1
1
6c36129a2f22e68bbc0e3e2475b0a566ebd3f169
Billy Chan
2024-10-17T07:03:42
sea-query-binder 0.7.0
diff --git a/sea-query-binder/Cargo.toml b/sea-query-binder/Cargo.toml index e5413ad..2f06eeb 100644 --- a/sea-query-binder/Cargo.toml +++ b/sea-query-binder/Cargo.toml @@ -3,7 +3,7 @@ [package] name = "sea-query-binder" -version = "0.7.0-rc.2" +version = "0.7.0" authors = [ "Valentin Tolmer <valentin@tolmer.fr>",...
1
1
1
37867af8e296b3fc5f568f19db27da8baf609121
Chris Tsang
2024-10-05T10:42:02
sea-query-rusqlite 0.7.0-rc.2
diff --git a/sea-query-rusqlite/Cargo.toml b/sea-query-rusqlite/Cargo.toml index 8be702e..47d1642 100644 --- a/sea-query-rusqlite/Cargo.toml +++ b/sea-query-rusqlite/Cargo.toml @@ -3,7 +3,7 @@ [package] name = "sea-query-rusqlite" -version = "0.7.0-rc.1" +version = "0.7.0-rc.2" authors = [ "Ivan Krivosheev <py.kri...
1
1
1
8fd2ce017b64cb28b75c92ae0ae73f65587fa536
Chris Tsang
2024-10-05T10:40:02
sea-query 0.32.0-rc.2
diff --git a/Cargo.toml b/Cargo.toml index 129dbf7..f5e306b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "0.32.0-rc.1" +version = "0.32.0-rc.2" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy...
1
2
2
6265311ea0599496fc3954554d89d6f7002afd10
Chris Tsang
2024-10-05T00:03:05
Fix tests
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index cd2bc92..f065011 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -41,9 +41,7 @@ impl QueryBuilder for PostgresQueryBuilder { fn prepare_simple_expr(&self, simple_expr: &SimpleExpr, sql: &mut dyn SqlWr...
2
3
5
eb062e247b7c8f2dee8e72c9bb501ebf51ad91fc
Chris Tsang
2024-10-04T23:30:37
Add doc test
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index 94dd198..cd2bc92 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -41,7 +41,9 @@ impl QueryBuilder for PostgresQueryBuilder { fn prepare_simple_expr(&self, simple_expr: &SimpleExpr, sql: &mut dyn SqlWr...
3
20
5
0ac71eb7714fd905cbc50cd3602f9657b482cf64
Julian Popescu
2024-10-04T23:19:23
feat: Add `IF NOT EXISTS` to type alter add statement (#803) * feat: Add to type alter add statement * Test * Revert --------- Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
diff --git a/src/backend/postgres/types.rs b/src/backend/postgres/types.rs index db5a43b..3ec126d 100644 --- a/src/backend/postgres/types.rs +++ b/src/backend/postgres/types.rs @@ -88,22 +88,27 @@ impl PostgresQueryBuilder { fn prepare_alter_type_opt(&self, opt: &TypeAlterOpt, sql: &mut dyn SqlWriter) { ...
2
61
15
2d2190b5649f97e122e7171d932746093f4fd1f4
Chris Tsang
2024-10-04T22:41:05
Revert "Update Cargo.toml" This reverts commit 415af2502298832c32fa2297b83650ffbe071bb3.
diff --git a/sea-query-rusqlite/Cargo.toml b/sea-query-rusqlite/Cargo.toml index a095d6c..8be702e 100644 --- a/sea-query-rusqlite/Cargo.toml +++ b/sea-query-rusqlite/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.60" [lib] [dependencies] -sea-query = { version = ">=0.31, <=0.32", path = "..", default-features = fal...
1
1
1
415af2502298832c32fa2297b83650ffbe071bb3
Chris Tsang
2024-10-04T22:36:29
Update Cargo.toml
diff --git a/sea-query-rusqlite/Cargo.toml b/sea-query-rusqlite/Cargo.toml index 8be702e..a095d6c 100644 --- a/sea-query-rusqlite/Cargo.toml +++ b/sea-query-rusqlite/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.60" [lib] [dependencies] -sea-query = { version = "0.32.0-rc.1", path = "..", default-features = false ...
1
1
1
85ab89581086ebc9792c63603f5810b8ab81704a
Jeremy Chone
2024-10-04T22:35:43
sea-query-rusqlite - update rusqlite version to 0.32 (#802)
diff --git a/examples/rusqlite/Cargo.toml b/examples/rusqlite/Cargo.toml index 4916f05..7fe5f2e 100644 --- a/examples/rusqlite/Cargo.toml +++ b/examples/rusqlite/Cargo.toml @@ -12,7 +12,7 @@ chrono = { version = "0.4", default-features = false, features = ["clock"] } time = { version = "0.3.36", features = ["parsing",...
2
2
2
a30b9186256aeec6c10387f7a1fb8c9f5ea2fb6c
Niklas Korz
2024-10-04T21:42:04
Case-sensitive enum type casts (#789)
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index f065011..94dd198 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -41,7 +41,7 @@ impl QueryBuilder for PostgresQueryBuilder { fn prepare_simple_expr(&self, simple_expr: &SimpleExpr, sql: &mut dyn SqlWr...
3
73
3
126b2a0f823b80b100c2f4bf5521882dedeb87e7
Jonas Platte
2024-10-01T23:01:20
Replace Educe derive macro with manual trait implementations (#817) Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
diff --git a/Cargo.toml b/Cargo.toml index c37b0e8..129dbf7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,6 @@ path = "src/lib.rs" inherent = "1.0" sea-query-derive = { version = "0.4.0", path = "sea-query-derive", default-features = false, optional = true } serde_json = { version = "1", default-features = f...
2
163
59
8bef04bb31429a524d4f808e284dcd65dcf2d908
Justin Chang
2024-10-01T22:08:39
Derive additional traits for sea_query::Alias (#818)
diff --git a/src/types.rs b/src/types.rs index a58c751..0b2b834 100644 --- a/src/types.rs +++ b/src/types.rs @@ -241,7 +241,7 @@ pub enum Order { } /// Helper for create name alias -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Alias(String); /// Null Alias
1
1
1
e144af62f375b5dd0d37c3c11ef233eaaa940c3a
Chris Tsang
2024-09-28T09:43:07
Small mistake
diff --git a/Cargo.toml b/Cargo.toml index 6b428df..c37b0e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ backend-postgres = [] backend-sqlite = [] default = ["derive", "backend-mysql", "backend-postgres", "backend-sqlite"] derive = ["sea-query-derive"] -attr = [] +attr = ["sea-query-derive"] hashable-...
1
1
1
d37b93e7b3a441deaa8402986e652da06778860a
Chris Tsang
2024-09-28T08:56:24
Amend tests
diff --git a/sea-query-derive/tests/pass/enum_def/default.rs b/sea-query-derive/tests/pass/enum_def/default.rs index ec43784..027e3f8 100644 --- a/sea-query-derive/tests/pass/enum_def/default.rs +++ b/sea-query-derive/tests/pass/enum_def/default.rs @@ -1,4 +1,4 @@ -use sea_query_attr::enum_def; +use sea_query_derive::e...
5
8
8
b00117333145ab457e2daf41f44ab9676c0366b7
Diptesh Choudhuri
2024-09-28T08:22:50
Add Postgres Json functions: `JSON_BUILD_OBJECT` and `JSON_AGG` (#787) * feat: add `json_build_object` function for postgres * feat: add `json_agg` function for postgres * style: add newlines * chore: apply linting suggestions * fix: tests for not_equals
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index fa48aa6..f065011 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -122,6 +122,8 @@ impl QueryBuilder for PostgresQueryBuilder { PgFunction::TsRankCd => "TS_RANK_CD", ...
3
63
4
2dba3c3c88679fdb82cd97bf4e7a0b8e9c66e137
Diptesh Choudhuri
2024-09-28T07:52:46
Md5 function (#786) * feat: add md5 declaration * feat: allow calling function * tests: add tests for new function * feat: remove query builder calls * chore: add docs about postgres and mysql * fix: minor doc change for current date
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index da0eea6..7bf29b5 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -676,6 +676,7 @@ pub trait QueryBuilder: Function::Custom(_) => "", Function::Random => self.random_fu...
5
52
1
0b0cba7d54785489dc3a6aecf9430c6642366032
Quentin Gliech
2024-09-05T04:32:21
sea-query-binder: relax the sqlx dependency range (#810) * sea-query-binder: relax the sqlx dependency range * Caret --------- Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
diff --git a/sea-query-binder/Cargo.toml b/sea-query-binder/Cargo.toml index b7da209..7799fd0 100644 --- a/sea-query-binder/Cargo.toml +++ b/sea-query-binder/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.60" [dependencies] sea-query = { version = "0.32.0-rc.1", path = "..", default-features = false, features = ["t...
1
1
1
1928f238935f6b3d1920838b80236199291b3b30
Taylor Beever
2024-08-15T15:09:51
feat: Add .apply_if to SelectStatement (#800) * feat: Add .apply_if to SelectStatement * fix: Satisfy cargo fmt in doctest
diff --git a/src/query/select.rs b/src/query/select.rs index dd39862..debd080 100644 --- a/src/query/select.rs +++ b/src/query/select.rs @@ -214,6 +214,37 @@ impl SelectStatement { self } + /// A shorthand to express if ... else ... when constructing the select statement. + /// + /// # Examples...
1
31
0