Tim Eggert
d9306126cf
Incorporate requested CR changes
2021-10-12 13:06:56 +02: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
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
12a8e5c8e9
Readme
2021-10-09 14:40:12 +08:00
Chris Tsang
c24d7704d9
Move examples #232
2021-10-09 14:38:43 +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
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
Chris Tsang
a17d5452f8
0.2.5
2021-10-06 18:49:55 +08:00
Chris Tsang
a1e6e002d1
sea-orm-macros 0.2.5
2021-10-06 18:48:12 +08:00
Chris Tsang
e229651eae
sea-orm-cli 0.2.5
2021-10-06 18:44:24 +08:00
Chris Tsang
a2767eb6fe
sea-orm-codegen 0.2.5
2021-10-06 18:43:43 +08:00
Chris Tsang
97235df059
Test
2021-10-06 18:29:47 +08:00
Billy Chan
5d2934a87f
Bind null custom types
2021-10-06 18:26:31 +08:00
Billy Chan
8990261d70
Bind null custom types
2021-10-06 18:26:03 +08:00
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
Billy Chan
7779ac886e
Escape rust keyword on codegen
2021-10-05 10:49:06 +08:00
Billy Chan
f3f24320e9
Add test cases
2021-10-05 10:23:45 +08:00
Billy Chan
19a572b721
Escape rust keywords with r#
raw identifier
2021-10-04 23:30:20 +08:00
Chris Tsang
632290469b
Fixup
2021-10-04 21:24:37 +08:00
Chris Tsang
4fd5d56dbf
cargo +nightly fmt
2021-10-04 13:13:36 +08:00
baoyachi. Aka Rust Hairy crabs
b74b1f343f
Add debug_query and debug_query_stmt macro ( #189 )
2021-10-04 13:12:18 +08:00
Chris Tsang
af93ea44ad
Fix clippy warnings
2021-10-04 12:11:19 +08:00
Billy Chan
91fb97c12a
Update::many()
will not raise DbErr::RecordNotFound
error
2021-10-04 11:18:42 +08:00
Chris Tsang
700a0206e7
Merge pull request #219 from Ka1wa/feature/cli-generate-entity-filter-tables
...
Add tables option to CLI generate entity
2021-10-04 10:35:54 +08:00
Jordy Ruiter
ba96917a18
Add tables option to CLI generate entity
2021-10-03 15:45:07 +09:00
Chris Tsang
7274f5c624
Fix test failure
2021-10-02 15:16:43 +08:00
Chris Tsang
5c0a5be9ad
Readme
2021-10-02 14:20:49 +08:00
Chris Tsang
ea88d73e84
Cleanup Readme
2021-10-02 14:17:40 +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
7163f51788
Readme
2021-10-01 21:41:30 +08:00
Chris Tsang
656e503a52
Doc
2021-10-01 13:33:05 +08:00
Chris Tsang
0c05b4c34e
Improve example for Select::into_values
2021-10-01 13:24:11 +08:00
Chris Tsang
d79419f0d3
0.2.4
2021-10-01 12:37:51 +08:00
Chris Tsang
dc1bf2c066
sea-orm-macros 0.2.4
2021-10-01 12:37:48 +08:00
Chris Tsang
ab921f0d9b
Merge pull request #190 from SeaQL/ss/actix-web-4-beta
...
Port the Actix example to Actix 4 Beta
2021-10-01 11:24:08 +08:00
Chris Tsang
f0dda202b2
Add to workflow
2021-10-01 11:15:38 +08:00
Chris Tsang
399715521e
Rename folder
2021-10-01 11:14:59 +08:00
Chris Tsang
50a8ae41c0
Tweaks
2021-10-01 11:11:48 +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
cb5445b035
Bump sea-query to 0.16.5
2021-09-30 22:42:31 +08:00