245 Commits

Author SHA1 Message Date
Billy Chan
6018d3f1b9
Merge remote-tracking branch 'origin/master' into active-enum 2021-11-02 12:18:37 +08:00
Billy Chan
fcf3ea9407
Try fixing some doctest errors 2021-10-31 14:40:36 +08:00
Charles Chege
30814f0053 Provide further exaplanation for
pub struct ActiveValue<V>

Add a code snippet for a simple example
2021-10-31 09:03:02 +03:00
Charles Chege
a22350914c Solutions for doc tests 2021-10-30 18:55:53 +03:00
Charles Chege
870ca3ffb0 Run fmt --all 2021-10-30 12:00:07 +03:00
Charles Chege
e0023611a2 Improve documentation for the drivers and the entity
Provide module level code example on how to create an Entity, Model, ActiveModel, Column and PrimaryKey
2021-10-30 11:15:43 +03:00
Charles Chege
db098d1a03 Documetation for the entity module 2021-10-29 10:39:16 +03:00
Billy Chan
fe64d53b45
Merge remote-tracking branch 'origin/master' into active-enum 2021-10-27 13:24:35 +08:00
Billy Chan
ded28be2c0
Refactoring 2021-10-26 18:58:06 +08:00
Billy Chan
2ee376ddd1
Try EnumValue 2021-10-26 16:22:24 +08:00
Billy Chan
6059cdd9ad
Remove unused EnumIter 2021-10-25 17:03:10 +08:00
Billy Chan
f20c64988d
Tests all DB 2021-10-25 16:52:02 +08:00
Chris Tsang
5daa9abd38 #267 Added is_null and is_not_null 2021-10-23 15:41:33 +08:00
Billy Chan
b65d441dea
Fix clippy warnings 2021-10-21 16:26:42 +08:00
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