39 Commits

Author SHA1 Message Date
Billy Chan
8caed80fd7
Merge branch 'master' into last-insert-id 2021-10-06 22:38:43 +08:00
Billy Chan
11781082ba
Throw error if none of the db rows are affected 2021-09-30 10:31:21 +08:00
Billy Chan
9efaeeba8b
Update test cases 2021-09-27 18:02:20 +08:00
Billy Chan
dcaedd7d3a cargo fmt 2021-09-10 12:56:41 +08:00
Billy Chan
f4d1a52791 Change update behavior, add ActiveModel insert & update 2021-09-10 12:56:41 +08:00
Billy Chan
ca56f27909
cargo clippy 2021-09-03 16:20:57 +08:00
Billy Chan
8e2b7e561e
Testing composite primary keys 2021-09-02 11:47:57 +08:00
Billy Chan
333f199c1a
cargo fmt 2021-08-29 22:37:21 +08:00
Billy Chan
4d0c5f0b0f
Hotfix - Postgres errors 2021-08-29 22:11:19 +08:00
Billy Chan
752cc4a44e
WIP 2021-08-29 19:39:01 +08:00
Billy Chan
3bada7fbc3
WIP 2021-08-29 12:05:55 +08:00
Sam Samai
5930c4b278 Clean up 2021-08-06 21:17:49 +10:00
Sam Samai
402c003d84 WIP - failing for postgres on Customer::find().count(db).await.unwrap(); 2021-08-05 21:08:28 +10:00
Sam Samai
09dd290101 WIP 2 2021-08-02 21:21:35 +10:00
Sam Samai
abed934d3f WIP strange fail with postgres driver 2021-08-01 16:14:31 +10:00
Billy Chan
571210748f
cargo +nightly fmt 2021-07-26 14:56:56 +08:00
Sam Samai
dfda079b77 Store baker contact details as Json and test 2021-07-21 15:36:53 +10:00
Sam Samai
c9833893c0 Column type can be Uuid 2021-07-20 16:28:38 +10:00
Sam Samai
47b70cfe6d Create serial field on cake which is UUID 2021-07-19 17:23:34 +10:00
Sam Samai
74b5dee773 Test updating a deleted entity 2021-07-18 13:52:38 +10:00
Sam Samai
c1eddc4887 Test right_join 2021-07-15 10:52:36 +10:00
Sam Samai
85f512d412 Bakery chain Schema and CRUD now use data from common module 2021-07-15 10:42:25 +10:00
Sam Samai
2e0f6df743 Merge branch 'master' into ss/test_suite
# Conflicts:
#	Cargo.toml
2021-07-14 09:12:55 +10:00
Chris Tsang
1e6a778a0f ValueType does not need to impl Default 2021-07-12 02:48:37 +08:00
Sam Samai
a838cf7c23
Naivedatetime for placed_at on order (#40)
* WIP use NativeDateTime for placed_at

* Use NaiveDatetime for placed_at

* Cargo fmt again

Co-authored-by: Chris Tsang <tyt2y7@gmail.com>
2021-07-11 22:17:28 +08:00
Sam Samai
1fa7c7e177 Test delete cake and bakery 2021-07-10 22:07:57 +10:00
Sam Samai
f961e6e28d Test bakery update 2021-07-10 21:27:58 +10:00
Sam Samai
7ebfddae91 Test update cake 2021-07-10 21:20:51 +10:00
Sam Samai
550d9a7bcb Cake price is decimal now 2021-07-08 22:07:08 +10:00
Sam Samai
ad4c1c813c Test create order 2021-07-08 22:00:46 +10:00
Sam Samai
1ecc8480ab Test create lineitem 2021-07-08 21:43:19 +10:00
Sam Samai
f05de487ff Use Decimal for lineitem price 2021-07-07 21:46:21 +10:00
Sam Samai
0eeb37b219 Test create cake 2021-07-05 22:14:16 +10:00
Sam Samai
cf356ecfdb Test create customer 2021-07-05 21:50:18 +10:00
Sam Samai
a40785c554 Test baker and bakery create 2021-07-05 21:43:32 +10:00
Sam Samai
f61ed5a2cc Use DbErr instead of ExecErr 2021-07-03 22:14:13 +10:00
Sam Samai
f60a1c32a3 Test bakery create 2021-07-03 21:18:35 +10:00
Sam Samai
c820bb66f7 Fix relationship between Cake and lineitems, add Cake schema creation test 2021-06-30 21:16:44 +10:00
Sam Samai
391fb08260 Separate schema tests 2021-06-30 21:15:12 +10:00