221 Commits

Author SHA1 Message Date
Billy Chan
dbf475bf9d
1.0.0-rc.7 2024-06-25 11:50:11 +08:00
Billy Chan
7d537748b7
Bump dependency 2024-06-25 10:45:18 +08:00
Billy Chan
3758f0c51d
1.0.0-rc.6 2024-06-19 20:41:58 +08:00
Billy Chan
bca933a055
CLI: generate has_one relation for foreign key of unique index / constraint (#2254)
* CLI: generate `has_one` relation for foreign key of unique index / constraint

* Primary key column is unique

* Bump dependency

* Fix
2024-06-19 20:40:07 +08:00
Billy Chan
66e9e7d5ee
Update dependency 2024-06-19 19:03:06 +08:00
Billy Chan
42dae34396
Non TLS runtime (#2256)
* Non TLS runtime

* Fix
2024-06-19 17:26:25 +08:00
Chris Tsang
987cb38aaf 1.0.0-rc.5 2024-05-29 13:46:38 +01:00
Billy Chan
0798bf2037
1.0.0-rc.4 2024-05-03 16:07:49 +08:00
Billy Chan
36a151bba7
Added ColumnType::Blob (#2213)
* Added `ColumnType::Blob`

* Fix

* Fix

* Use latest rc versions

* bump sea-query & sea-schema

* fix loco examples

* fix loco examples

* revert
2024-05-03 16:07:36 +08:00
Billy Chan
7f0290de3f
Bump sea-schema 2024-05-02 13:18:57 +08:00
Billy Chan
0ff000b8f8
Upstream Changes - 4 (#2168)
* cli: generate entity ignore default database schema

* fixup

* select result is `i32`

* fix

* clippy

* revert

* revert

* revert

* revert
2024-03-27 16:19:03 +08:00
Billy Chan
cdf216ccb1
1.0.0-rc.3 2024-03-27 00:17:41 +08:00
Chris Tsang
5d78e56f8c Fix sea-schema 2024-03-24 20:16:46 +00:00
Chris Tsang
38a7e551bf Fix dependency 2024-03-24 19:52:23 +00:00
Billy Chan
a321f0a566
Upstream Changes - 3 (#2155)
* Upstream Changes - 3

* refactor

* revert
2024-03-19 16:57:46 +08:00
Chris Tsang
65de9f929c 1.0.0-rc.2 2024-03-15 23:31:56 +00:00
Chris Tsang
8f406575e7 Upgrade sea-schema 2024-03-15 23:01:52 +00:00
Ryan Kopf
8025199499
Fix the handling of new mod files. (#2064)
Co-authored-by: ryankopf <git@ryankopf.com>
2024-02-28 20:03:05 +00:00
Billy Chan
42553b6624
1.0.0-rc.1 2024-02-06 14:14:09 +08:00
Billy Chan
94403b5659
migration: schema helper (#2099)
* Adapted loco-rs/schema.rs

* avoid `&mut ColumnDef` after upgraded to sea-query 0.31.0

* refactoring

* rewrite schema.rs

* revert

* fmt

* fix

* loco_example: pin loco-rs version

* refactor
2024-02-06 14:10:36 +08:00
Billy Chan
cef380b977
SQLite type mappings (#2077)
* sqlite: deps

* sqlite: update data type mappings

* sqlite: decimal test cases

* sqlite: try negative numbers

* fixup

* fixup

* fmt

* clippy

* fixup

* fixup

* fixup

* refactor

* fix

* Drop the use of `rust_decimal_macros` (#2078)

* sqlite: decimal -> real

* revert

* Bump dependencies

* Fixup

* Fixup

* Fixup

* Fixup

* Refactor

* Refactor

* Refactor
2024-02-05 14:42:55 +08:00
Chris Tsang
0016eff73b Update 2024-01-28 01:50:43 +00:00
Chris Tsang
70d4278598 0.12.12 2024-01-22 09:48:29 +00:00
Chris Tsang
f2bda8a4c2 Changelog 2024-01-17 20:55:21 +00:00
Chris Tsang
260b8a4076 0.12.11 2024-01-14 16:10:33 +00:00
Dmitrii Aleksandrov
e3c94a7708
Export main() of sea-orm-cli (#1889) (#2034)
* Export main() of sea-orm-cli (#1889)

* Fix compile error: require "codegen" feature for main()
2024-01-12 22:43:13 +08:00
Chris Tsang
4a59ca681b 0.12.10 2023-12-14 19:42:32 +00:00
Chris Tsang
c9a2528546 Revert "sea-orm-cli migrate init: don't overwrite files by default (#1829)"
This seems to be a breaking change may be we should apply later
2023-12-08 14:16:26 +00:00
chayleaf
3d6124393a
sea-orm-cli migrate init: don't overwrite files by default (#1829) 2023-12-08 21:32:25 +08:00
Chris Tsang
1ce3778c61 0.12.6 2023-11-13 09:03:26 +00:00
Chris Tsang
070a30aab1 0.12.5 2023-11-12 20:14:29 +00:00
Chris Tsang
8ab24cf884
Enum extra attributes (#1966)
* Feature: Adds sea-orm-cli generate `--enum-extra-attributes` option (#1952)

* Adds `--enum-extra-derives`

* Adds test_enum_extra_attributes

---------

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>

* Fixup

---------

Co-authored-by: Zander Milroy <zander.milroy+github@gmail.com>
2023-11-09 03:41:57 +08:00
Lev Khoroshansky
0dbfb42bb7
Support --enum-extra-derives (#1934)
* feat: Support `--enum-extra-derives`

* test: Enum extra derives

* style: Don't format derives

* fix: Put `quote!` inside a function with `#[rustfmt::skip]`
2023-11-09 03:04:24 +08:00
Chris Tsang
240620176c 0.12.4 2023-10-19 19:28:46 +01:00
Chris Tsang
f9db14c686 0.12.3 2023-09-22 18:13:25 +01:00
Chris Tsang
242237aa51 0.12.2 2023-08-04 20:44:05 +01:00
Chris Tsang
1e6b10b532 0.12.1 2023-07-27 15:01:42 +01:00
Chris Tsang
e7661a7423 Fix 2023-07-27 12:51:03 +01:00
Chris Tsang
cc677e37d5
Print some Entity Generate messages (#1787) 2023-07-27 19:19:04 +08:00
Chris Tsang
ae8dcceb43 Community Survey 2023-07-27 19:11:17 +08:00
Chris Tsang
96087291c2 0.12.0-rc.5 2023-07-25 16:28:35 +08:00
Billy Chan
9b54797dd7
Upgrade SQLx to v0.7 (#1742)
* Upgrade SQLx to v0.7

* Refactoring

* Fixup

* Bump SeaSchema version

* Fixup

* Refactoring

* Refactoring

* dep

* Bump

* Update sea-schema

* Update sea-schema

---------

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-07-22 01:56:48 +08:00
Billy Chan
217894ddad
Drop git2 dependency (#1769)
* Change of API of SeaSchema 0.12

* [CLI] replace `git2` with `glob`
2023-07-21 21:44:43 +08:00
Chris Tsang
ae899d6744 Remove sea-query's Iden macro 2023-07-13 10:36:56 +01:00
Chris Tsang
4e8d0b0c0c 0.12.0-rc.4 2023-07-08 00:14:02 +08:00
Billy Chan
acca634e03
Revert "Upgrade SQLx to v0.7"
This reverts commit 832fabf8ff296896231c0d00bc42ecde779c6d5f.
2023-07-07 16:31:15 +08:00
Billy Chan
832fabf8ff
Upgrade SQLx to v0.7 2023-07-07 16:30:21 +08:00
ccQpein
e8eac61c3f
Update readme temp (#1723) 2023-06-26 11:06:04 +08:00
Chris Tsang
b45534c8c2 0.12.0-rc.3 2023-06-22 07:00:42 +08:00
Aditya Yadav
f6c9d81918
Moving clap to version 4 (#1468)
* Moving clap to vesion 4

* Moving the sea-orm-migration cli to clap v4

* Removing the deprecated flag from clapv4

* Upgrade clap to 4.3

* Fixup

* .

* Try compile [CLI]

---------

Co-authored-by: aadi58002 <aadi58002gmail.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-06-03 11:41:59 +08:00