66 Commits

Author SHA1 Message Date
Chris Tsang
f9e8f861ce sea-orm-codegen 0.11.0-rc.1 2023-02-01 23:46:42 +08:00
Billy Chan
036edf9d70
Noop when update without providing any values (#1384)
* Noop when update without providing any values

* Add tests

* Update Cargo.toml

* Bump SeaQuery's version

* Fixup

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-01-26 17:12:50 +08:00
Billy Chan
e246d3faaf
Cont. Upgrade to SeaQuery 0.28.0 (#1366)
* Upgrade to SeaQuery 0.28.0

* Remove unnecessary heap allocation

* Upgrade sea-query-binder

* Upgrade sea-schema

* Fix

* Upgrade sea-schema

* refactoring

Co-authored-by: Ivan Krivosheev <py.krivosheev@gmail.com>
2023-01-05 20:41:28 +08:00
Billy Chan
b2185af559
Cleaning up dependency (#1300)
* Dependency version cleanup

* Update build tool

* Disable default features

* [cli] disable default features
2022-12-16 15:52:00 +08:00
Chris Tsang
93089567d5 sea-orm-codegen 0.10.3 2022-11-14 15:08:25 +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
Billy Chan
2419401d30
sea-orm-codegen 0.10.1 2022-10-27 16:03:36 +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
671d79469a
Fixup 2022-10-17 17:25:35 +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
Ivan Krivosheev
2731878d0e Set minimal rustc version 2022-08-07 02:34:43 +03:00
Chris Tsang
be17b098ca sea-orm-codegen 0.9.1 2022-07-22 00:14:24 +08:00
Chris Tsang
95503faa89 sea-orm-codegen 0.9.0 2022-07-12 00:20:37 +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
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
Chris Tsang
c32b07edb8 sea-orm-codegen 0.7.0 2022-03-26 18:29:26 +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
Chris Tsang
377205d6a5 sea-orm-codegen 0.6.0 2022-02-07 00:10:07 +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
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
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
Chris Tsang
c78fa48fff sea-orm-codegen 0.4.0 2021-11-19 23:03:48 +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
Chris Tsang
0789ee71bf sea-orm-codegen 0.3.0 2021-10-16 01:41:06 +08:00
Chris Tsang
7c8e766e8b sea-orm-codegen 0.2.6 2021-10-09 23:15:03 +08:00
Chris Tsang
a2767eb6fe sea-orm-codegen 0.2.5 2021-10-06 18:43:43 +08:00
Chris Tsang
12affaf0c1 sea-orm-codegen 0.2.4 2021-09-26 16:44:55 +08:00
Chris Tsang
3c608ad9c3 Bump sea-query 2021-09-26 16:07:06 +08:00
Billy Chan
06a26ace2e
Codegen parse column unique key from index 2021-09-24 15:30:41 +08:00
Chris Tsang
995a9d0045 sea-orm-codegen 0.2.3 2021-09-22 17:37:34 +08:00
Chris Tsang
903fda0e87 sea-orm-codegen 0.2.2 2021-09-17 23:39:58 +08:00
Billy Chan
5cb1088fd9 Update sea-query dependency 2021-09-15 12:40:37 +08:00
Billy Chan
a6f117a908
sea-orm-cli with --expanded-format & --compact-format flags 2021-09-10 23:08:30 +08:00
Billy Chan
9c3aba8c0e
codegen of compact entity files 2021-09-10 22:28:08 +08:00
Chris Tsang
9483a5af8b sea-orm-codegen 0.2.0 2021-09-04 01:46:35 +08:00
Chris Tsang
f722ce3336 sea-orm-codegen 0.1.3 2021-08-23 03:49:06 +08:00