Billy Chan
cef380b977
SQLite type mappings ( #2077 )
...
* sqlite: deps
* sqlite: update data type mappings
* sqlite: decimal test cases
* sqlite: try negative numbers
* fixup
* fixup
* fmt
* clippy
* fixup
* fixup
* fixup
* refactor
* fix
* Drop the use of `rust_decimal_macros` (#2078 )
* sqlite: decimal -> real
* revert
* Bump dependencies
* Fixup
* Fixup
* Fixup
* Fixup
* Refactor
* Refactor
* Refactor
2024-02-05 14:42:55 +08:00
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
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