305 Commits

Author SHA1 Message Date
Billy Chan
a977572762
Update with returning for Postgres 2021-11-05 22:13:52 +08:00
Billy Chan
c39a3b8cb2
Insert with returning for Postgres 2021-11-05 18:20:25 +08:00
Billy Chan
47e2486ead
Refactoring 2021-11-05 16:25:55 +08:00
Billy Chan
10f3de0f9d
Only eq & ne operators with enum casting 2021-11-05 11:13:31 +08:00
Billy Chan
67bb168e49
Correctly apply filters on enum columns 2021-11-04 11:40:05 +08:00
Billy Chan
2b841b1b5d
Refactoring 2021-11-04 10:49:50 +08:00
Billy Chan
bb78a1d709
More ergonomic DeriveActiveEnum derive macro 2021-11-03 15:38:42 +08:00
Billy Chan
0bbb50b7f6
Merge remote-tracking branch 'origin/master' into active-enum 2021-11-03 10:52:29 +08:00
Billy Chan
7309f8a624
cargo fmt 2021-11-02 14:39:45 +08:00
Billy Chan
65542301da
Add docs 2021-11-02 14:25:18 +08:00
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