36 Commits

Author SHA1 Message Date
Billy Chan
71dbffc725
Fix clippy (#1426)
* Fix clippy

* Fix clippy
2023-01-27 18:50:20 +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
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
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
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
0f164b62d5
Fix related & linked with enum columns (#376)
* Fix related & linked with enum columns

* Add test cases
2021-12-10 23:41:43 +08:00
Billy Chan
01eff84ce8 Join with table alias 2021-10-15 22:28:39 +08:00
Billy Chan
e558dc8584
Move impl Linked to entity_linked module 2021-09-27 12:13:57 +08:00
Billy Chan
a4f2e3c2a8
Test cases with more level of joins 2021-09-27 11:45:19 +08:00
Billy Chan
ee504e7d9f
find_linked join with table alias 2021-09-27 10:36:32 +08:00
Billy Chan
889e9df923 Hotfix - ModelTrait::find_linked() filter with model's primary key 2021-09-10 16:34:04 +08:00
Billy Chan
9db0748c64
Non-static link 2021-08-28 20:20:34 +08:00
Billy Chan
447947e355
Fix find_linked join direction 2021-08-26 23:28:27 +08:00
Billy Chan
31941d3af6
WIP: Linked (#89) 2021-08-23 23:11:08 +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
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
a0d9b47b1f Rename left_join_and_select_* to find_*_related 2021-06-28 02:17:14 +08:00
Chris Tsang
0a215f75ed Docs 2021-06-28 02:10:46 +08:00
Chris Tsang
9f93c7ed6f Use find_related in place of find_cake 2021-06-28 01:34:49 +08:00
Chris Tsang
a0db19758b SelectTwoMany 2021-06-27 03:39:09 +08:00
Chris Tsang
df7bb5c195 left_join_and_select_also 2021-06-27 00:03:16 +08:00
Chris Tsang
b308486192 Refactor Query traits 2021-06-08 22:10:27 +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
89c743d5a7 QueryTrait 2021-06-01 18:08:18 +08:00
Chris Tsang
8a1329a7b5 SelectHelper 2021-06-01 17:31:32 +08:00
Chris Tsang
d5cdeb1fe0 Test case 2021-05-18 00:37:47 +08:00
Chris Tsang
7bf8ab0202 Many to many prototype 2021-05-18 00:18:55 +08:00
Chris Tsang
4a9fa29e2d Docs 2021-05-15 15:09:50 +08:00
Chris Tsang
abc11753a8 Select Both 2021-05-15 15:02:54 +08:00
Chris Tsang
9dc7c818d7 Move code 2021-05-15 13:23:52 +08:00