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
Chris Tsang
6b33d67f7c
Merge pull request #463 from BenJeau/master
...
Codegen add serde derives to enums, if specified
2022-03-06 21:56:50 +08:00
Chris Tsang
377205d6a5
sea-orm-codegen 0.6.0
2022-02-07 00:10:07 +08:00
Billy Chan
21216f3a97
Codegen column_name
proc_macro attribute ( #433 )
...
* feat: codegen `column_name` proc_macro attribute
* test: codegen `column_name`
2022-02-05 21:14:10 +08:00
Billy Chan
8eb095385d
Migration ( #335 )
...
* Refactor `ConnectionTrait`
* Refactoring
* Build index & foreign key statements
* Fix imports
* Fixup
* Rocket example with migration
* async-std compatible with the tokio 1.0 runtime
* Use reexported dependency
* Compile without selecting any db backend
* Updating sea-orm-cli dep
* sea-orm-cli migrate commands
* cargo fmt
* Test [cli]
* Refactoring
* Clap app name should be "sea-orm-cli"
* Correctly capture MIGRATION_DIR
* Rename README
* Add `sea-orm-cli migrate init` command
* Update README
* Try restructured sea-query dependency (SeaQL/sea-schema#41 )
* Set `DATABASE_URL` environment variable
2022-02-05 20:34:54 +08:00
Billy Chan
8145088814
Refactoring
...
`ColumnDef` with default value
Cargo fmt
Update docs
Fixup
Support `DateTimeLocal`
Update docs
Codegen write db timestamp column as `DateTimeUtc` type
Update dependency
Merge branch 'sea-query/add-new-column-ref' into pr/429
feat: apply alias on `ColumnRef::SchemaTableColumn`
2022-02-01 14:29:03 +08:00
Benoit Jeaurond
2a2b5d7b62
feat: add serde derives to enums, if specified
2022-01-16 16:16:11 -05:00
Chris Tsang
82bad4a376
0.5.0
2022-01-01 16:05:36 +08:00
Chris Tsang
9beb572afb
sea-orm-codegen 0.5.0-rc.1
2021-12-26 02:27:44 +08:00
Billy Chan
9036d27da7
Codegen SQLite ( #386 )
...
* Codegen SQLite
* Remove debugging
* Fixup
* Add SQLite "sakila.db" demo [issues]
2021-12-25 11:31:47 +08:00
Billy Chan
4072e74284
cargo fmt
2021-12-17 11:14:54 +08:00
Billy Chan
f5f6a6774f
Codegen ActiveEnum & Create Enum From ActiveEnum ( #348 )
2021-12-15 00:52:50 +08:00
Chris Tsang
6767e8b834
sea-orm-codegen 0.4.2
2021-12-12 22:45:34 +08:00
Chris Tsang
f2273eac71
sea-orm-codegen 0.4.1
2021-12-05 00:13:03 +08:00
Billy Chan
ccb8b95324
Codegen Handle Self Referencing & Multiple Relations to the Same Related Entity ( #347 )
...
* [sea-orm-codegen] handle self referencing relation & multiple relations to the same related entity
* Test [cli]
* Test [cli]
2021-12-04 21:22:10 +08:00
Chris Tsang
c78fa48fff
sea-orm-codegen 0.4.0
2021-11-19 23:03:48 +08:00
Billy Chan
8b217239fd
Fix clippy warnings
2021-11-08 12:13:29 +08:00
Carter Snook
058f6d5d2b
chore: update to Rust Edition 2021 ( #273 )
2021-10-26 17:27:53 +08:00
Chris Tsang
3cef4d5ebf
sea-orm-codegen 0.3.1
2021-10-23 16:00:02 +08:00
Billy Chan
b65d441dea
Fix clippy warnings
2021-10-21 16:26:42 +08:00
Chris Tsang
0789ee71bf
sea-orm-codegen 0.3.0
2021-10-16 01:41:06 +08:00