jiayi
8e888eda7b
generate Related for many-to-many relation with extra columns ( #1260 )
2022-12-01 13:14:20 +08:00
Billy Chan
a7c8970800
[sea-orm-cli] generate entity with relation variant order by name of reference table ( #1229 )
2022-11-24 12:15:31 +08:00
Chris Tsang
93089567d5
sea-orm-codegen 0.10.3
2022-11-14 15:08:25 +08:00
Billy Chan
1b2834137b
[CLI] Fix generating Enum with variant starts with number ( #1211 )
2022-11-09 15:02:01 +08:00
Chris Tsang
a459f24320
sea-orm-codegen 0.10.2
2022-11-06 21:03:36 +08:00
Chris Tsang
40e44b31dd
Update MSRV to 1.65
2022-11-06 21:03:35 +08:00
frederikhors
9af5885632
Update writer.rs ( #1174 )
...
Fixes https://github.com/SeaQL/sea-orm/issues/1173
2022-11-04 18:37:44 +08:00
Billy Chan
2419401d30
sea-orm-codegen 0.10.1
2022-10-27 16:03:36 +08:00
Billy Chan
5e0c625ac0
Fix - vector of float & double does not derive Eq ( #1158 )
...
* Fix - vector of float & double does not derive Eq
* clippy
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-10-27 00:40:03 +08:00
Andrey Kutejko
7e92876feb
Escape Rust keywords used in table names ( #1052 )
...
* Escape Rust keywords used in table names
* Escape rust keyword when generating conjunct relation impl
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-10-26 11:22:08 +08:00
Billy Chan
a3fb8e8b0d
[cli] generate Related
for m-to-n relation ( #1075 )
2022-10-26 11:20:33 +08:00
Billy Chan
b5b9790252
Support array datatype in PostgreSQL ( #1132 )
...
* PostgreSQL array (draft)
* Fixup
* Fixup
* Fixup
* Fixup
* Fixup
* Refactoring
* generate entity for Postgres array fields
* Add tests
* Update Cargo.toml
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-10-23 18:26:57 +08:00
Chris Tsang
8d7230d6ec
Dependency
2022-10-19 00:21:47 +08:00
Billy Chan
4df9a2672a
Fixup
2022-10-18 19:06:38 +08:00
Billy Chan
29da37b4f2
Merge branch 'master' into sea-query-v0.27
2022-10-17 17:53:41 +08:00
Billy Chan
671d79469a
Fixup
2022-10-17 17:25:35 +08:00
Billy Chan
f3b7febc2e
Edit test case
2022-09-25 10:43:50 +08:00
Lingxiang "LinG" Wang
a349f13fd7
Struct / enum derive PartialEq should also derive Eq ( #988 )
...
* add Eq
* Fix clippy warnings
* Fix test cases
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-09-25 10:38:05 +08:00
Horu
6816e86f4d
[cli] Add -l
/--lib
flag ( #953 )
...
* [cli] Add `-l`/`--lib` flag
* [cli] Change function name to reflect functionality
2022-09-25 10:31:26 +08:00
Billy Chan
6ba8e1b9f1
DeriveRelation
on empty Relation enum (#1019 )
2022-09-25 10:17:39 +08:00
Billy Chan
77bddd85a5
Fixup
2022-09-22 15:07:37 +08:00
Ivan Krivosheev
c2e98b56a8
issues-969 Patch sea-orm-codegen
2022-09-09 21:00:01 +03:00
Billy Chan
d016f66a5f
Cargo.toml specify SeaORM homepage
2022-09-02 15:12:16 +08:00
Chris Tsang
13b53369e2
Prepare for 0.10.0
2022-08-20 22:47:31 +08:00
Chris Tsang
25faf02abe
sea-orm-codegen 0.9.2
2022-08-20 14:06:55 +08:00
Chris Tsang
fad54627cd
Update sea-query
to 0.26.3
2022-08-20 14:06:55 +08:00
Billy Chan
43495de0aa
Fix clippy warnings - 1 ( #967 )
...
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* cargo fmt
2022-08-12 20:02:53 +08:00
Ivan Krivosheev
2731878d0e
Set minimal rustc version
2022-08-07 02:34:43 +03:00
Erik Rhodes
5fbc336de0
[cli] added with-copy-enums flag to cli and conditional derive
2022-08-06 16:45:28 +08:00
Billy Chan
f6672137a2
cargo fmt
2022-07-26 12:20:40 +08:00
Anshul Chauhan
b566ea6e12
Update get_info method to respect date-time crate ( #910 )
...
Refer https://github.com/SeaQL/sea-orm/issues/869
2022-07-26 12:19:43 +08:00
Chris Tsang
be17b098ca
sea-orm-codegen 0.9.1
2022-07-22 00:14:24 +08:00
Billy Chan
13d2abf5a8
Codegen supports VarBinary
column type ( #746 )
...
* [cli]: codegen supports `VarBinary` column type
* Fixup
2022-07-17 18:05:39 +08:00
Chris Tsang
95503faa89
sea-orm-codegen 0.9.0
2022-07-12 00:20:37 +08:00
Billy Chan
c5aa63e282
Generate entity files with PostgreSQL's schema name ( #422 )
...
* feat(codegen): generate entity files with PostgreSQL's schema name
* Ignore schema name `public`
* Restore changes
* Fix test cases
* cargo fmt
* [cli] fixup
2022-07-11 23:11:04 +08:00
Chris Tsang
a24df5a91e
Tweaks & fmt
2022-07-11 00:03:40 +08:00
Billy Chan
65017bdc08
Add various blob column types with size ( #850 )
2022-07-10 22:52:50 +08:00
Nahua
a1bf662fc3
#661 : Add flag to sea-orm-cli
to generate code for time crate ( #724 )
...
* Implement entity writer context and date time crate enum
* Use entity writer context to render correct rust type according to chrono/time enum
* Add unit test to get col rs type with time crate
* Add date-time-crate flag for cli
* Edit usage of updated get_rs_type method
* Use arg enum for date time crate
* Move date time crate arg enum conversion into commands module
* Directly use arg enum
* Fixing import issues for arg enum w/ help from Billy
2022-07-10 15:22:47 +08:00
Billy Chan
d6831e5295
Bump version of sqlx, sea-query, sea-schema, time and uuid ( #834 )
...
* Bump version of sqlx, sea-query, sea-schema, time and uuid
* PostgreSQL `u32` was wrapped in `Oid` (launchbadge/sqlx#1602 )
* Update test cases
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* Bump sea-schema to ^0.9.2
* Update test cases
* Pin on sea-query minor version
2022-07-05 01:05:11 +08:00
Chris Tsang
ec881e35a9
Merge pull request #588 from SeaQL/cli-gen-enum-num-variants
...
CLI generate enum with numeric like variants
2022-07-01 02:10:00 +08:00
kyoto7250
0ce8ee6a31
feat(sea-orm-cli): output log about generated file name. ( #735 )
...
* feat(sea-orm-cli): output lof about generated file name.
https://github.com/SeaQL/sea-orm/issues/722
* include column names in info
* cargo fmt
* Update sea-orm-cli/src/commands.rs
Avoid multiple initializations
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
* show info per column
* refactor: use write! macro
* Refactoring
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-06-12 20:30:49 +08:00
Chris Tsang
39b3726ebb
sea-orm-codegen 0.8.0
2022-05-10 00:03:59 +08:00
Chris Tsang
75d5c0f5ea
Restructure sea-orm-cli & sea-orm-migration
2022-05-09 12:30:58 +08:00
Billy Chan
498c0154ca
Restructure SeaORM migration
...
Bump codegen's sea-query version [cli]
Update CLI subcommand method
Move migration utility into sea-orm-migration
2022-05-09 12:30:55 +08:00
Allen
bdd9133aa6
fix lints and warnings
...
also clean up impl_into_active_value macro
2022-04-09 16:52:47 -07:00
Chris Tsang
c32b07edb8
sea-orm-codegen 0.7.0
2022-03-26 18:29:26 +08:00
Billy Chan
6091629adb
cargo fmt
2022-03-25 15:25:49 +08:00
Billy Chan
cd3b11a503
Fix codegen with Enum in expanded format ( #624 )
2022-03-22 23:27:14 +08:00
Billy Chan
73701fef9a
Codegen Unsigned Integer - 2 ( #397 )
...
* feat: codegen unsigned integer
* feat: apply alias on `ColumnRef::SchemaTableColumn`
* Update SQLite test cases, quote identifier with double quotes
* Bump sea-query version to 0.22
* Add dummy line
* Tests [cli] and [issues]
* update sea-schema
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-03-14 12:40:02 +08:00
Billy Chan
4ee6eac313
CLI generate enum with numeric like variants
2022-03-08 17:50:01 +08:00