235 Commits

Author SHA1 Message Date
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
ba66de16b6
Merge remote-tracking branch 'origin/master' into last-insert-id 2021-09-28 18:23:30 +08:00
Billy Chan
f79a417150
Remove ValueType: Default 2021-09-27 18:01:38 +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
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
889e9df923 Hotfix - ModelTrait::find_linked() filter with model's primary key 2021-09-10 16:34:04 +08:00
Chris Tsang
f56ac7b7f6 #129 Add set method to UpdateMany 2021-09-10 15:21:06 +08:00
Billy Chan
c4cdfa1add
Refactor 2021-09-10 13:15:45 +08:00
Chris Tsang
19ec35f1b5 Revert breaking changes 2021-09-10 12:58:28 +08:00
Billy Chan
f4d1a52791 Change update behavior, add ActiveModel insert & update 2021-09-10 12:56:41 +08:00
Billy Chan
5060890888
cargo +nightly fmt 2021-09-03 14:56:58 +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
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
caa85d7fba Try typed mull value SeaQL/sea-query#107 2021-08-21 22:56:48 +08:00
Billy Chan
09c328bb0d Use smol async-runtime and require one of the supported runtime for integration tests 2021-08-21 22:56:48 +08:00
Billy Chan
2cfaa34a33 Test against all supported runtime 2021-08-21 22:56:48 +08:00
Billy Chan
38ace07e83 Schema prefix in table join 2021-08-14 18:43:07 +08:00
Billy Chan
b7408dda30 Support schema prefix when specifying table name 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
Billy Chan
22516b8f68 Add Postgres db driver 2021-07-21 19:07:02 +08:00
Chris Tsang
303a0f32d6 cargo fmt 2021-07-19 11:15:31 +08:00
Chris Tsang
1dceb07c70 pub use Value and Values 2021-07-19 11:15:31 +08:00
Chris Tsang
25432e68d0 from_raw_sql example 2021-07-18 00:02:29 +08:00
Chris Tsang
9334d4ff5d DbBackend alias 2021-07-17 22:03:41 +08:00
Chris Tsang
57097c0ede Visibility 2021-07-16 16:51:12 +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
Billy Chan
d59ee1e298 Mock any database 2021-07-14 21:31:59 +08:00
Chris Tsang
bcd221a915 Add Syntax to Statement 2021-07-13 22:39:29 +08:00
Chris Tsang
6ff5a32b7a cargo fmt 2021-07-11 22:08:37 +08:00
Chris Tsang
0298cfb6af Rename to DbErr 2021-06-30 21:17:23 +08:00
Billy Chan
2a1173c174
Add & use OrmError (#36)
* Add & use OrmError

* Rename to SeaErr
2021-06-30 21:08:41 +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
688891f706 Use MockDatabase in doc test 2021-06-27 16:15:56 +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
Billy Chan
19c0b0c35d Select to many 2021-06-26 22:55:30 +08:00
Chris Tsang
ad3fb45253 cargo fmt 2021-06-22 01:30:26 +08:00
Chris Tsang
ec290156c5 SQLx SQLite support 2021-06-20 23:04:25 +08:00