22 Commits

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

* Fix clippy
2023-01-27 18:50:20 +08:00
Chris Tsang
b3e4d1c1cf RecordNotFound -> RecordNotUpdated 2023-01-25 15:43:44 +08:00
Chris Tsang
d5c9c65079 Revert save to return Self 2021-12-26 00:13:56 +08:00
Billy Chan
17631512bb
feat(Model): add wrapper method delete 2021-12-21 18:24:05 +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
f975223d9e
Fixup 2021-11-10 16:08:06 +08:00
Billy Chan
ac804a1642
Imports PaginatorTrait by default making it backward compatible 2021-11-10 15:26:29 +08:00
jasper
05181994d3 Move count to PaginatorTrait 2021-11-10 08:57:05 +08:00
jasper
23498892b0 Add PaginatorTrait and CountTrait 2021-11-09 21:33:55 +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
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
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
3bada7fbc3
WIP 2021-08-29 12:05:55 +08: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
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
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