232 Commits

Author SHA1 Message Date
Billy Chan
afdf9bba0d
1.1.2 2024-12-02 14:55:33 +08:00
Chris Tsang
4a0fbcc43d 1.1.1 2024-11-04 01:01:05 +00:00
Billy Chan
0dd2b2290a
Bump sea-schema 2024-10-17 15:21:01 +08:00
Billy Chan
0c5668dcd8
1.1.0 2024-10-15 14:35:37 +08:00
Billy Chan
fecc43196e
1.1.0-rc.3 2024-10-15 14:34:33 +08:00
Billy Chan
c64f48d85f
1.1.0-rc.2 2024-10-04 17:44:26 +08:00
ethan
e13b23c884
Update sqlx version to 0.8.2 (#2371)
* Update sqlx version to 0.8.2 due to vulnerability disclosure.

* sqlx 0.8.2

* CHANGELOG

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 16:50:34 +08:00
Billy Chan
9d5e3eed79
1.1.0-rc.1 2024-08-09 18:33:10 +08:00
Billy Chan
563562d325
Bump SQLx to 0.8 (#2305)
* Bump SQLx to 0.8

* Bump bigdecimal to 0.4

* Bump sea-query

* Bump sea-schema

* Fix clippy warnings

* Patch for examples

* Fix: enable serde feature on dependent crates

* `TryGetable` for MySQL String

* Fix pi_tests

* Fix uuid_tests

* Handle MySQL into_json

* examples CI

* Fix

* Drop Git override

* Bump to RC version

* revert
2024-08-09 18:32:14 +08:00
Billy Chan
6f0cf6283a
Bump SeaQL crates 2024-08-02 17:14:24 +08:00
Billy Chan
4587d36e6f
1.0.0 2024-08-02 17:08:28 +08:00
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