Billy Chan
71dbffc725
Fix clippy ( #1426 )
...
* Fix clippy
* Fix clippy
2023-01-27 18:50:20 +08:00
Billy Chan
e2b796b093
Cont. feat: expose database connection to ActiveModelBehaviour
's methods ( #1328 )
...
* feat: expose database connection to `ActiveModelBehaviour`'s methods (#1145 )
* Make ActiveModelTrait async
* Add tests
* refactoring
Co-authored-by: teenjuna <53595243+teenjuna@users.noreply.github.com>
2023-01-12 17:22:46 +08:00
Billy Chan
43495de0aa
Fix clippy warnings - 1 ( #967 )
...
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* cargo fmt
2022-08-12 20:02:53 +08:00
Billy Chan
76c0d7fff5
Name conflict of foreign key constraints when two entities have more than one foreign keys ( #417 )
...
* fix: name conflict of foreign key constraints when two entities have more than one fk
* test: update test case's foreign keys
* feat: override default name of foreign key constraint
2022-01-28 01:03:24 +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
351a78c784
Try as_ref
2021-10-15 22:48:49 +08:00
Billy Chan
cc96bb783c
Test ActiveModelBehavior
2021-10-15 17:43:40 +08:00
Chris Tsang
668fb64224
Refactor test suite
2021-10-15 15:46:25 +08:00
Billy Chan
b48f1251b0
Add #244 as test cases
2021-10-15 12:38:17 +08:00
Billy Chan
5339696da2
Merge branch 'master' into active-model-behavior
2021-10-12 20:37:00 +08:00
Billy Chan
8990261d70
Bind null custom types
2021-10-06 18:26:03 +08:00
Billy Chan
01fecbc405
Merge remote-tracking branch 'origin/master' into active-model-behavior
2021-10-04 11:47:38 +08:00
Chris Tsang
a6dfb417e2
Merge pull request #207 from SeaQL/naive-date
...
Support `chrono::NaiveDate` & `chrono::NaiveTime`
2021-09-30 22:52:31 +08:00
Billy Chan
02066cef6e
Support chrono::NaiveTime
2021-09-30 10:34:38 +08:00
Billy Chan
f7e96b3d72
Support chrono::NaiveDate
2021-09-30 10:34:38 +08:00
Billy Chan
ef1eb577b7
Update ActiveModelBehavior
API
2021-09-30 10:31:58 +08:00
Billy Chan
89806ef522
Add test cases
2021-09-28 14:27:30 +08:00
Chris Tsang
84594114dc
Readme
2021-09-18 20:15:20 +08:00
Chris Tsang
68787d1412
Refactor uuid test
2021-09-18 15:47:59 +08:00
Chris Tsang
fc769a89df
Refactor timestamp test
2021-09-18 15:17:23 +08:00
Billy Chan
37d390e500
WIP
2021-09-17 19:04:18 +08:00
Billy Chan
cc5fde41bd
Testing Vec<u8>
2021-09-10 17:05:45 +08:00
Chris Tsang
9885029585
Use DeriveEntityModel in test suite
2021-09-09 17:22:54 +08:00
Chris Tsang
76596da46a
Merge pull request #117 from SeaQL/primary-key-type
...
`InsertResult` to return the primary key's type
2021-09-03 14:15:11 +08:00
Billy Chan
8cde6e46e4
Merge branch 'master' into linked-api
2021-09-03 12:14:39 +08:00
Billy Chan
d14322ad75
WIP (workflow will fail)
2021-09-01 19:05:59 +08:00
Billy Chan
0e0ee0ede6
Add TryFromU64 & test Uuid as primary key
2021-09-01 16:53:54 +08:00
Billy Chan
5073c6f4aa
Relation with optional ForeignKeyAction
2021-09-01 10:35:51 +08:00
Billy Chan
bdf6593dfe
Hotfix
2021-08-31 22:31:58 +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
484da8f6b6
WIP
2021-08-28 20:00:59 +08:00
Billy Chan
bfaa7d4539
Test Linked
2021-08-26 23:28:44 +08:00
Chris Tsang
7e968e2bbf
Improve bakery schema
2021-08-07 21:35:04 +08:00
Chris Tsang
2060e30f06
Entity prelude with external types
2021-08-07 21:01:56 +08:00
Sam Samai
abed934d3f
WIP strange fail with postgres driver
2021-08-01 16:14:31 +10:00
Sam Samai
09f344ecbb
Test multiple sequential operations
2021-07-24 20:46:19 +10: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
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
41bc47543a
Bakery profit_margin is double in schema
2021-07-14 08:55:36 +10:00
Sam Samai
8bfad93d30
Manually truncate the tables for MySQL
2021-07-13 11:27:28 +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