Chris Tsang
5683c83189
Changelog & Docs
2023-01-26 23:36:16 +08:00
Billy Chan
4e1a0e4a7c
Allows offset & limit to take Option<u64>
( #1410 )
...
* Allows offset & limit to take `Option<u64>`
* Takes `Into<Option<u64>>` instead
* Reset limit and offset when None value is provided
2023-01-27 13:03:13 +08:00
Billy Chan
e9df3aa01d
Casting columns as a different data type on select, insert and update ( #1304 )
...
* Cast select and value
* Refactoring
* Test casting Postgres citext
* Fixup
* Revert
* Add test cases
* Fixup
* Rename methods
2023-01-12 14:56:11 +08:00
Chris Tsang
bb5dead0c8
Docs
2023-01-12 13:55:39 +08:00
Billy Chan
e246d3faaf
Cont. Upgrade to SeaQuery 0.28.0 ( #1366 )
...
* Upgrade to SeaQuery 0.28.0
* Remove unnecessary heap allocation
* Upgrade sea-query-binder
* Upgrade sea-schema
* Fix
* Upgrade sea-schema
* refactoring
Co-authored-by: Ivan Krivosheev <py.krivosheev@gmail.com>
2023-01-05 20:41:28 +08:00
Billy Chan
ccb8818365
Add QuerySelect::columns
method ( #1264 )
2022-12-01 14:01:11 +08:00
Billy Chan
4d8645ae8b
Support Vector of enum for Postgres ( #1210 )
...
* Support Vector of enum for Postgres
* Fix clippy
* Add tests for integer array
* Fix dependency
* Bump sea-query to 0.27.2
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-11-15 13:50:05 +08:00
Billy Chan
29da37b4f2
Merge branch 'master' into sea-query-v0.27
2022-10-17 17:53:41 +08:00
kyoto7250
ba5a83d3a8
distinct support in sea-orm ( #902 )
...
* distinct support
* remove feature flag
* fix argument
2022-09-25 10:21:44 +08:00
Billy Chan
77bddd85a5
Fixup
2022-09-22 15:07:37 +08:00
Billy Chan
a80c33ef4c
Rewrite enum and text casting ( #973 )
...
* Rewrite enum and text casting
* Add doc tests
* Refactoring
2022-09-05 00:38:12 +08:00
Billy Chan
bb9d532ab5
Support join with table alias ( #852 )
2022-07-11 00:07:11 +08:00
Billy Chan
d6831e5295
Bump version of sqlx, sea-query, sea-schema, time and uuid ( #834 )
...
* Bump version of sqlx, sea-query, sea-schema, time and uuid
* PostgreSQL `u32` was wrapped in `Oid` (launchbadge/sqlx#1602 )
* Update test cases
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* Bump sea-schema to ^0.9.2
* Update test cases
* Pin on sea-query minor version
2022-07-05 01:05:11 +08:00
Billy Chan
75cb269ceb
Custom join on conditions ( #793 )
...
* Custom join on conditions
* Try lambda approach
* Implement debug for relation
* Add example without `rev`
* Add more examples
* Docs
2022-06-29 00:27:55 +08:00
Marcel
e20f6e24c5
Update sea-query dependency to 0.24.0 ( #673 )
...
* Use sea-query 0.24.0
* window: None
* window: None
* window: None
2022-04-18 11:04:30 +08:00
Billy Chan
66a005237c
Update sea-orm to depends on sea-query 0.20.0
2021-12-12 23:03:11 +08:00
lz1998
273dc0dd1a
add offset and limit ( #351 )
...
* add offset and limit
* move offset&limit to QuerySelect
2021-12-03 01:12:49 +08:00
Charles Chege
a9b6f8cc83
Documetation for the query module
2021-10-29 10:38:30 +03:00
Chris Tsang
5daa9abd38
#267 Added is_null
and is_not_null
2021-10-23 15:41:33 +08:00
Chris Tsang
7c82670d12
Doc
2021-10-02 01:17:32 +08:00
Billy Chan
b716c9ed57
cargo fmt
2021-09-30 11:19:26 +08:00
Chris Tsang
beb3ec62dc
Add example usage of Condition
...
https://github.com/SeaQL/sea-query/issues/144
2021-09-29 13:54:36 +08:00
Billy Chan
ee504e7d9f
find_linked
join with table alias
2021-09-27 10:36:32 +08:00
Chris Tsang
f96c8ed49b
cargo fmt
2021-09-10 22:02:35 +08:00
Marco Napetti
c3084e425f
Initial lock support ( #118 )
...
* Initial lock support
* Move methods to QuerySelect trait
Co-authored-by: Marco Napetti <nappa85@therocktrading.com>
2021-09-10 16:35:57 +08:00
Billy Chan
8cde6e46e4
Merge branch 'master' into linked-api
2021-09-03 12:14:39 +08:00
Billy Chan
541b94f15d
Update query helper column_as
2021-09-03 11:23:29 +08:00
Billy Chan
0db9021da0
Update tests
2021-09-02 16:30:57 +08:00
Billy Chan
5fbc7b146a
Refactoring & Testing
2021-08-31 18:31:01 +08:00
Billy Chan
38ace07e83
Schema prefix in table join
2021-08-14 18:43:07 +08:00
Billy Chan
e76928f1cc
Support join on multiple columns
2021-08-14 00:01:40 +08:00
Chris Tsang
36ceddaa4b
Tweaks
2021-07-26 03:17:15 +08:00
Chris Tsang
9334d4ff5d
DbBackend alias
2021-07-17 22:03:41 +08:00
Billy Chan
e83cc63e3a
Replacing Syntax
& *BuilderBackend
with DatabaseBackend
2021-07-16 00:28:03 +08:00
Billy Chan
56fd77eddf
Build query with syntax
2021-07-16 00:28:03 +08:00
Chris Tsang
9f93c7ed6f
Use find_related in place of find_cake
2021-06-28 01:34:49 +08:00
Chris Tsang
da545c266c
Comments
2021-06-12 19:48:43 +08:00
Chris Tsang
9beca86617
Lint ideas
2021-06-10 12:13:34 +08:00
Chris Tsang
0f7c181d41
And Having
2021-06-08 22:30:00 +08:00
Chris Tsang
b308486192
Refactor Query traits
2021-06-08 22:10:27 +08:00
Chris Tsang
f26e95c9e3
Use SeaRc
2021-06-07 21:20:23 +08:00
Chris Tsang
a746f8b863
Refactor ModelTrait
2021-06-02 22:23:10 +08:00
Chris Tsang
c65cb9687b
Refactor Trait bounds
2021-06-02 19:09:00 +08:00
Chris Tsang
2fc4520ee8
Refactor Query as traits
2021-06-02 00:36:06 +08:00
Chris Tsang
c45a4bb376
impl QueryTrait for Select
2021-06-01 18:20:05 +08:00
Chris Tsang
8a1329a7b5
SelectHelper
2021-06-01 17:31:32 +08:00
Chris Tsang
e216974fa3
sea_query IntoCondition
2021-05-25 22:53:35 +08:00
Chris Tsang
a016cdeeda
filter
accepts Condition
2021-05-24 22:07:02 +08:00
Chris Tsang
ec116762a8
cargo fmt
2021-05-19 21:51:11 +08:00
Chris Tsang
92ac1098cb
Identity Tuple
2021-05-19 21:37:56 +08:00