231 Commits

Author SHA1 Message Date
Billy Chan
1ee2dab3b7
Fixup 2021-10-21 15:53:46 +08:00
Billy Chan
80c72004d1
Try Postgres enum 2021-10-21 15:43:50 +08:00
Billy Chan
734608471c
WIP 2021-10-20 18:54:08 +08:00
Billy Chan
d525c710ce
Merge remote-tracking branch 'origin/master' into active-enum 2021-10-20 18:43:39 +08:00
Billy Chan
f1ef7d9c47
Add DbErr::Type 2021-10-20 16:41:01 +08:00
Billy Chan
388bf2cfca
Fixup 2021-10-20 15:17:11 +08:00
Billy Chan
eed8b7c51e
Add docs 2021-10-20 15:06:23 +08:00
Billy Chan
ceba3ef7a0
Add docs 2021-10-20 13:16:22 +08:00
Billy Chan
5b0720065f
More tests 2021-10-20 12:18:08 +08:00
Billy Chan
e177a338c4
Minimal trait bounds 2021-10-20 12:17:57 +08:00
Billy Chan
8627c8d961
Draft ActiveEnum 2021-10-19 19:08:02 +08:00
Chris Tsang
c0761a949b cargo fmt 2021-10-19 18:50:45 +08:00
Chris Tsang
10b101b142 Test case for DeriveIntoActiveModel 2021-10-16 17:46:08 +08:00
Billy Chan
aa5ccb9216
Hotfix - ActiveModel::insert() trigger ActiveModelBehavior::after_save() 2021-10-15 17:43:39 +08:00
Chris Tsang
760c439c83 Unit test DeriveIntoActiveModel 2021-10-13 18:58:00 +08:00
Chris Tsang
d5e95b0f8f
Merge pull request #240 from Acidic9/feat/into-active-model-derive
Add derive `DeriveIntoActiveModel` and `IntoActiveValue` trait
2021-10-13 18:30:09 +08:00
Billy Chan
6ecc3138c3
Use new ActiveValue::into_value() 2021-10-12 21:14:40 +08:00
Billy Chan
75e625fee9
ActiveModelBehavior without db connection 2021-10-12 20:42:42 +08:00
Billy Chan
5339696da2
Merge branch 'master' into active-model-behavior 2021-10-12 20:37:00 +08:00
Ari Seyhun
b582d3aac9 Merge branch 'master' of github.com:SeaQL/sea-orm into feat/into-active-model-derive 2021-10-12 18:31:34 +07:00
Ari Seyhun
1a9704eaad Add support for Option<Option<T>> into active model 2021-10-12 18:27:45 +07:00
Chris Tsang
7bc6477091 Merge branch 'master' into transaction-3 2021-10-12 14:24:35 +08:00
Chris Tsang
3fd33ab53c
Merge branch 'master' into last-insert-id 2021-10-12 13:59:41 +08:00
Chris Tsang
edc2e6500d
Merge pull request #223 from SeaQL/active-value-api
`ActiveValue::take()` & `ActiveValue::into_value()` without `unwrap()`
2021-10-12 12:57:17 +08:00
Ari Seyhun
4f64c66813 Add derive DeriveIntoActiveModel 2021-10-11 14:34:02 +07:00
Ari Seyhun
8667b2ddfc Add trait IntoActiveValue 2021-10-11 14:33:47 +07:00
Billy Chan
23215c8dd5
fix clippy warnings 2021-10-08 18:22:25 +08:00
Billy Chan
2f90207d64
Remove PrimaryKeyValue trait 2021-10-08 18:10:19 +08:00
Chris Tsang
a2ec6cd351 Rename MockTransaction -> Transaction 2021-10-07 18:00:11 +08:00
Chris Tsang
51b30ee837
Merge branch 'master' into transaction-3 2021-10-07 17:21:59 +08:00
Billy Chan
8caed80fd7
Merge branch 'master' into last-insert-id 2021-10-06 22:38:43 +08:00
Chris Tsang
df4df87d09 Rename Transaction -> MockTransaction 2021-10-04 21:37:12 +08:00
Chris Tsang
4fd5d56dbf cargo +nightly fmt 2021-10-04 13:13:36 +08:00
Billy Chan
35b8eb9a4d
ActiveValue::take() & ActiveValue::into_value() without unwrap() 2021-10-04 12:17:31 +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
Marco Napetti
02ebc9745c Transaction 3 2021-10-04 11:39:16 +08:00
Chris Tsang
7c82670d12 Doc 2021-10-02 01:17:32 +08:00
Chris Tsang
a0be9239bd Doc 2021-10-01 23:41:12 +08:00
Chris Tsang
656e503a52 Doc 2021-10-01 13:33:05 +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
Chris Tsang
ca296bc941 Feature guard macros 2021-09-30 22:25:31 +08:00
Billy Chan
5497810afb
Remove unnecessary trait bounds 2021-09-30 11:49:27 +08:00
Billy Chan
088bfd01e7
Add unit tests 2021-09-30 11:19:17 +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
ba66de16b6
Merge remote-tracking branch 'origin/master' into last-insert-id 2021-09-28 18:23:30 +08:00
Chris Tsang
85eadd38d2 Change mock connector behavior to mock Postgres regardless of feature flags 2021-09-28 13:57:44 +08:00
Chris Tsang
0cfa8784a3
Merge pull request #182 from SeaQL/find-linked-join-alias
`find_linked` join with table alias
2021-09-28 13:19:49 +08:00