311 Commits

Author SHA1 Message Date
Chris Tsang
125ee40161
Merge pull request #211 from SeaQL/error-no-record-updated
Throw error if none of the db rows are affected
2021-10-05 22:01:10 +08:00
Chris Tsang
c7532bcc08 Basic MockTransaction implementation
TODO: nested transaction
2021-10-05 19:33:41 +08:00
Billy Chan
3955abb14c
Merge remote-tracking branch 'origin/master' into last-insert-id 2021-10-04 11:51:20 +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
e7b822c65d cargo fmt 2021-10-04 11:44:02 +08:00
Marco Napetti
02ebc9745c Transaction 3 2021-10-04 11:39:16 +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
54150382b9
Merge branch 'master' into rename-col-name-n-variant 2021-09-30 10:48:43 +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
11781082ba
Throw error if none of the db rows are affected 2021-09-30 10:31:21 +08:00
Billy Chan
ba66de16b6
Merge remote-tracking branch 'origin/master' into last-insert-id 2021-09-28 18:23:30 +08:00
Billy Chan
89806ef522
Add test cases 2021-09-28 14:27:30 +08:00
Billy Chan
9efaeeba8b
Update test cases 2021-09-27 18:02:20 +08:00
Billy Chan
9c8f5aa93d
More test cases 2021-09-27 10:36:32 +08:00
Billy Chan
8dfbbc8385 Fix clippy warnings 2021-09-20 18:30:31 +08:00
Billy Chan
20123ef8cd Test parallel CRUD 2021-09-20 18:30:31 +08:00
Chris Tsang
84594114dc Readme 2021-09-18 20:15:20 +08:00
Chris Tsang
3001fca466 Refactor basic test 2021-09-18 16:37:07 +08:00
Chris Tsang
0a19db6977 Fix SQLite test suite 2021-09-18 16:16:33 +08:00
Chris Tsang
68787d1412 Refactor uuid test 2021-09-18 15:47:59 +08:00
Chris Tsang
558cf5904a Test suite: drop table if exists, instead of create table if not exists 2021-09-18 15:40:47 +08:00
Chris Tsang
fc769a89df Refactor timestamp test 2021-09-18 15:17:23 +08:00
Billy Chan
6435b51d09
Remove unused assert 2021-09-17 21:45:45 +08:00
Billy Chan
37d390e500
WIP 2021-09-17 19:04:18 +08:00
Billy Chan
f4dba6bf62
Fix clippy 2021-09-10 17:05:45 +08:00
Billy Chan
cc5fde41bd
Testing Vec<u8> 2021-09-10 17:05:45 +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
Chris Tsang
eca3949ea9
Merge pull request #135 from SeaQL/entity-format
Entity format
2021-09-10 12:55:05 +08:00
Chris Tsang
9885029585 Use DeriveEntityModel in test suite 2021-09-09 17:22:54 +08:00
Chris Tsang
6c810673c4 Move entity_to_table_create_statement 2021-09-07 15:55:58 +08:00
Billy Chan
b100e32ffd Rename entity_to_table_create_statement 2021-09-07 15:47:04 +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
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
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
8e2b7e561e
Testing composite primary keys 2021-09-02 11:47:57 +08:00
Billy Chan
d14322ad75
WIP (workflow will fail) 2021-09-01 19:05:59 +08:00
Billy Chan
a49f880f4f
WIP: composite primary keys 2021-09-01 18:23:23 +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
1ad1767457
cargo fmt 2021-08-31 23:10:39 +08:00
Billy Chan
bdf6593dfe
Hotfix 2021-08-31 22:31:58 +08:00
Billy Chan
5a0f1d0fd1
Try pretty_assertions 2021-08-31 19:05:54 +08:00
Billy Chan
5fbc7b146a
Refactoring & Testing 2021-08-31 18:31:01 +08:00