45 Commits

Author SHA1 Message Date
Billy Chan
9797da1ee4
Drop the use of rust_decimal_macros (#2078) 2024-01-24 17:58:50 +08:00
Ivan Yiu
d50312c081
Test cases improvement (#1811)
* adds find_with_linked test

* WIP(related test)

* mock related test done

* complete relation test

* loader update

* find_with/also_related missing test case for empty from other side

* comments fixup

* revert loader test

* related select test done

* find with/also linked test cases

* removed due to it being functionally same as the new one

* fmt, remove excess import

* improved model generation

* issue related test case #1790

* added loader test cases and slight improvement to find_related/linked

* miscellaneous changes

* added empty insert, merge load_one test case

* completed loader many to many test case, fmt

* removed empty_insert test case for now

* commented insert_test

* added Cargo.toml for issue 1790's folder

* buffed salvo version for ci(0.49 yanked)

* revert version for salvo example
2023-08-18 20:02:17 +08:00
Chris Tsang
8064097639 Comment 2023-07-26 19:03:56 +01:00
darkmmon
50a7048deb Adding find_with_linked (#1728) 2023-07-07 22:19:45 +08:00
Billy Chan
d099669ad8
Cleanup ambiguous glob imports (#1692)
* Cleanup ambiguous glob imports

* fix
2023-06-06 15:00:05 +08:00
Billy Chan
e6b6629733 Revert SeaORM prelude
Add `stream_partial_model` to `Select<E>` and `SelectTwo<E,F>`

Minor refactoring

fmt

Add `into_partial_model` to `Cursor<S>`

refactoring

Add test cases

Fix test cases

More test cases

Move partial_model tests
2023-04-26 18:28:53 +08:00
Billy Chan
b21abf617f
Fix clippy warnings (#1437) 2023-01-31 16:46:44 +08:00
Billy Chan
cbd7a8d1c9
Cleanup the use of vec![] (#1367)
* Public methods accept any IntoIterator as argument

* refactoring
2023-01-11 14:17:06 +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
Allen
bdd9133aa6 fix lints and warnings
also clean up impl_into_active_value macro
2022-04-09 16:52:47 -07:00
Chris Tsang
d5c9c65079 Revert save to return Self 2021-12-26 00:13:56 +08:00
Billy Chan
5104cd3573
Insert & Update Return Model (#339)
* Update insert & update API

* Update test cases

* Update README

* Fix clippy warnings

* Fixup

* Fixup
2021-12-18 14:30:10 +08:00
Billy Chan
006d35313b
Fix clippy warnings 2021-12-17 11:39:53 +08:00
Billy Chan
01eff84ce8 Join with table alias 2021-10-15 22:28:39 +08:00
Chris Tsang
620972b724 Fixup 2021-10-15 16:10:07 +08:00
Chris Tsang
668fb64224 Refactor test suite 2021-10-15 15:46:25 +08:00
Billy Chan
9c8f5aa93d
More test cases 2021-09-27 10:36:32 +08:00
Billy Chan
ca56f27909
cargo clippy 2021-09-03 16:20:57 +08:00
Billy Chan
b5d85486dd
Fixup 2021-09-03 14:35:20 +08:00
Billy Chan
541b94f15d
Update query helper column_as 2021-09-03 11:23:29 +08:00
Chris Tsang
cd43ff7143 Remove turbofish 2021-09-02 17:43:29 +08:00
Billy Chan
0db9021da0
Update tests 2021-09-02 16:30:57 +08:00
Billy Chan
bfaa7d4539
Test Linked 2021-08-26 23:28:44 +08:00
Billy Chan
2cfaa34a33 Test against all supported runtime 2021-08-21 22:56:48 +08:00
Sam Samai
e01585c9e7 Add runtime configs to tests and clean up 2021-08-06 22:27:03 +10:00
Billy Chan
33298636a6
Hotfix - sqlite ignore right_join test 2021-08-06 16:33:20 +08:00
Billy Chan
d5447bca88
Hotfix - Postgres types 2021-08-06 12:26:56 +08:00
Sam Samai
abed934d3f WIP strange fail with postgres driver 2021-08-01 16:14:31 +10:00
Sam Samai
1c3e1b410b Use DATABASE_URL env variable for bakery_chain_tests 2021-07-31 16:50:04 +10:00
Sam Samai
c240ebba77 Use DATABASE_URL env variable for relational_tests 2021-07-31 16:24:35 +10:00
Billy Chan
8013f92261
Feature gated mysql tests 2021-07-26 12:43:46 +08:00
Sam Samai
dfda079b77 Store baker contact details as Json and test 2021-07-21 15:36:53 +10:00
Sam Samai
d64bf72910 Run each relational test using #[async_std::test] 2021-07-19 16:30:22 +10:00
Sam Samai
c4667296ca Use greater than in having test 2021-07-18 20:58:52 +10:00
Sam Samai
1dcca49837 Test having 2021-07-18 12:54:21 +10:00
Sam Samai
8d9dc5ce1c Test count, min, max with group_by 2021-07-16 15:19:56 +10:00
Sam Samai
0e4840c98f Test group_by query 2021-07-16 15:02:34 +10:00
Sam Samai
1526bb2b3b Test inner join 2021-07-15 22:16:01 +10:00
Sam Samai
c1eddc4887 Test right_join 2021-07-15 10:52:36 +10:00
Sam Samai
b302a11586 Test left_join 2021-07-13 21:11:11 +10:00
Sam Samai
5190278e1a Setup and tear down DB 2021-07-13 20:01:01 +10:00
Sam Samai
8bfad93d30 Manually truncate the tables for MySQL 2021-07-13 11:27:28 +10:00
Sam Samai
82b63589d3 Try mysql adaptor 2021-07-13 10:04:44 +10:00
Sam Samai
c7ff5d8d05 Setup done in TestContext 2021-07-13 10:03:47 +10:00
Sam Samai
ba77fb80aa Create TestContext for setting up and tearing down the database after each test 2021-07-11 22:08:55 +10:00