Billy Chan
75e625fee9
ActiveModelBehavior without db connection
2021-10-12 20:42:42 +08:00
Billy Chan
8900d03492
Merge fix
2021-10-12 20:42:15 +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
Tim Eggert
d9306126cf
Incorporate requested CR changes
2021-10-12 13:06:56 +02:00
Chris Tsang
069040be8b
Tweak lifetime
2021-10-12 15:07:25 +08:00
Chris Tsang
3a6e55ced1
cargo fmt
2021-10-12 14:52:11 +08:00
Chris Tsang
f58d890df5
Merge pull request #222 from SeaQL/transaction-3
...
Transaction 3
2021-10-12 14:51:32 +08:00
Chris Tsang
7bc6477091
Merge branch 'master' into transaction-3
2021-10-12 14:24:35 +08:00
Chris Tsang
213a3fb8be
Merge pull request #205 from SeaQL/last-insert-id
...
Drop `Default` trait bound of `PrimaryKeyTrait::ValueType`
2021-10-12 14:12:05 +08:00
Chris Tsang
3fd33ab53c
Merge branch 'master' into last-insert-id
2021-10-12 13:59:41 +08:00
Chris Tsang
92795a022a
Bump SeaQuery
2021-10-12 13:58:26 +08:00
Chris Tsang
f9dd9d242a
Edit
2021-10-12 13:42:24 +08:00
Chris Tsang
b6c1296333
Fix conflict
2021-10-12 13:07:02 +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
Chris Tsang
e57975930e
Unit Test Rocket
2021-10-12 12:30:30 +08:00
Chris Tsang
8feca6be7b
Edit
2021-10-12 12:21:17 +08:00
Chris Tsang
4a1b8fabc5
Rework Rocket Db Pool
2021-10-12 03:10:33 +08:00
Billy Chan
12800468b1
Test nested transaction
2021-10-11 23:02:32 +08:00
Tim Eggert
b6c5d71fe2
Introduce optional serde support for model code generation
...
This introduces several things to optionally support automatic derive attributes for `serde::{Deserialize, Serialize}` for the generated models:
- introduces a `WithSerde` enum to indicate if Serialize, Deserialize, or even both should be derived from,
- adds an optional cli argument `--with-serde [none: default, serialize, deserialize, both]`
- adds test harness for both compact and expanded generation
2021-10-11 14:55:00 +02:00
Chris Tsang
ecaa0dca18
Edit
2021-10-11 18:50:05 +08:00
Chris Tsang
1a2bd13158
Nested transaction unit tests
2021-10-11 18:39:46 +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
Chris Tsang
f94c33d1ea
Explicit COMMIT and ROLLBACK in Mock
2021-10-11 12:11:40 +08:00
Chris Tsang
664afa4b44
Merge branch '0.2.x'
2021-10-09 23:20:24 +08:00
Chris Tsang
bfb83044f1
0.2.6
2021-10-09 23:17:30 +08:00
Chris Tsang
f0aea3bf10
sea-orm-macros 0.2.6
2021-10-09 23:17:30 +08:00
Chris Tsang
0eee2206ba
sea-orm-cli 0.2.6
2021-10-09 23:15:03 +08:00
Chris Tsang
7c8e766e8b
sea-orm-codegen 0.2.6
2021-10-09 23:15:03 +08:00
Chris Tsang
91efa1fae2
Test streaming in transaction
2021-10-09 21:45:25 +08:00
Chris Tsang
018f7dd19f
Streaming for MockConnection
2021-10-09 21:14:24 +08:00
Chris Tsang
12a8e5c8e9
Readme
2021-10-09 14:40:12 +08:00
Chris Tsang
c24d7704d9
Move examples #232
2021-10-09 14:38:43 +08: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
eb87b7c2ce
Test case
2021-10-08 16:56:36 +08:00
Billy Chan
ade06b4240
Merge branch 'master' into last-insert-id
2021-10-08 15:43:00 +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
Chris Tsang
30b90076ae
Merge pull request #211 from SeaQL/error-no-record-updated
...
Throw error if none of the db rows are affected
2021-10-07 16:59:42 +08:00
Chris Tsang
cab0f6ba6e
Merge pull request #224 from SeaQL/rust-keywords
...
Escape rust keywords with `r#` raw identifier
2021-10-07 16:36:56 +08:00
Billy Chan
a9f9599a4d
Codegen date & time column Rust type mapping
2021-10-07 16:36:47 +08:00
Chris Tsang
98e48cf2b2
Merge pull request #224 from SeaQL/rust-keywords
...
Escape rust keywords with `r#` raw identifier
2021-10-07 16:35:50 +08:00
Billy Chan
8caed80fd7
Merge branch 'master' into last-insert-id
2021-10-06 22:38:43 +08:00
Billy Chan
d6b53abd95
Handle crate
, Self
and self
rust keywords
2021-10-06 22:24:52 +08:00
Billy Chan
a970e43f50
Merge branch 'master' into rust-keywords
2021-10-06 22:04:55 +08:00
Billy Chan
18c245c72d
Codegen date & time column Rust type mapping
2021-10-06 21:25:37 +08:00
Chris Tsang
37d1e96a6f
Merge branch '0.2.x'
2021-10-06 19:00:25 +08:00