49 Commits

Author SHA1 Message Date
Denny Wong
5ef273d5e4
Added escaping to ActiveEnum to allow for non-UAX#31 chars, as well as camel_case related conflicts. (#1374)
* Added escaping to ActiveEnum to allow for non-Unicode Standard Annex #31 characters, as well as addressing issues with ' ' and '_' causing potential identifier conflicts.

* Improved docstring for camel_case_with_escaped_non_xid.

* Moved underscore prepending to camel_case_with_escaped_non_xid.

* cargo fmt and code fixes to resolve CI failures.

* Added unittest to sea_orm_macros::util for new function.

* Fixed a typo in a doc code block.

* clippy

* Test cases

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-03-23 12:41:05 +08:00
Billy Chan
2eda8aa3f2
Drop the use of sea-strum and depends on the original strum with a tailored EnumIter provided (#1535)
* Update heck dependency

* Fix formatter error

* Drop the use of `sea-strum` and depends on the original `strum` with a tailored `EnumIter` provided

* fmt

* Depends on `strum` 0.23

* Depends on `strum` 0.24

* Source code adapted from https://github.com/Peternator7/strum

* Update LICENSE

---------

Co-authored-by: Sergei Ivankov <sergeiivankov@pm.me>
Co-authored-by: Sergei Ivankov <96142843+sergeiivankov@users.noreply.github.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-03-22 11:47:15 +08:00
Billy Chan
5ba9aba900
chore: enable required syn features (#1556) 2023-03-20 18:44:51 +08:00
Billy Chan
8afc3eb2a3
Prepare 0.12.0 2023-03-16 18:28:03 +08:00
Sergei Ivankov
c34b6feb5e
Update heck dependency (#1520)
* Update heck dependency

* Fix formatter error

---------

Co-authored-by: Sergei Ivankov <sergeiivankov@pm.me>
2023-03-16 14:13:56 +08:00
Billy Chan
fe38d5ed25
0.11.1 2023-03-10 22:13:02 +08:00
Chris Tsang
2a4e5e00fd 0.11.0 2023-02-07 02:51:00 +08:00
Chris Tsang
9e36c1103e 0.11.0-rc.2 2023-02-04 16:10:21 +08:00
Chris Tsang
4f181bf438 sea-orm-macros 0.11.0-rc.1 2023-02-01 23:46:42 +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
Billy Chan
4d8645ae8b
Support Vector of enum for Postgres (#1210)
* Support Vector of enum for Postgres

* Fix clippy

* Add tests for integer array

* Fix dependency

* Bump sea-query to 0.27.2

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-11-15 13:50:05 +08:00
Chris Tsang
58fcee60cf sea-orm-macros 0.10.3 2022-11-14 15:08:25 +08:00
Chris Tsang
f4300e48aa sea-orm-macros 0.10.2 2022-11-06 21:03:37 +08:00
Chris Tsang
40e44b31dd Update MSRV to 1.65 2022-11-06 21:03:35 +08:00
Billy Chan
7fb7649aa4
sea-orm-macros 0.10.1 2022-10-27 16:03:38 +08: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
55e6b9d7d1 sea-orm-macros 0.9.2 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
c516e8b14a sea-orm-macros 0.9.1 2022-07-22 00:14:25 +08:00
Chris Tsang
f880a9d7e5 sea-orm-macros 0.9.0 2022-07-12 00:25:03 +08:00
Chris Tsang
3e1079e7ef sea-orm-macros 0.8.0 2022-05-10 00:07:13 +08:00
Chris Tsang
565fb5a725 sea-orm-macros 0.7.0 2022-03-26 18:33:17 +08:00
Chris Tsang
0c06831e1a sea-orm-macros 0.6.0 2022-02-07 00:11:22 +08:00
Chris Tsang
82bad4a376 0.5.0 2022-01-01 16:05:36 +08:00
Chris Tsang
cb26ed35bf sea-orm-macros 0.5.0-rc.1 2021-12-26 02:30:27 +08:00
Chris Tsang
7327a00cb2 sea-orm-macros 0.4.2 2021-12-12 22:48:03 +08:00
Chris Tsang
67b75fe680 sea-orm-macros 0.4.1 2021-12-05 00:15:54 +08:00
Chris Tsang
6ec3883bc1 sea-orm-macros 0.4.0 2021-11-19 23:06:19 +08:00
Billy Chan
6904b9f057
Try fixing sea-orm-macros doctest errors 2021-10-31 15:45:42 +08:00
Carter Snook
058f6d5d2b
chore: update to Rust Edition 2021 (#273) 2021-10-26 17:27:53 +08:00
Chris Tsang
24df068cca sea-orm-macros 0.3.1 2021-10-23 16:04:59 +08:00
Billy Chan
e911d2f5f4
Unify case-transform using the same crate 2021-10-21 11:36:57 +08:00
Chris Tsang
9f395fefee sea-orm-macros 0.3.0 2021-10-16 01:45:32 +08:00
Chris Tsang
f0aea3bf10 sea-orm-macros 0.2.6 2021-10-09 23:17:30 +08:00
Chris Tsang
a1e6e002d1 sea-orm-macros 0.2.5 2021-10-06 18:48:12 +08:00
Chris Tsang
dc1bf2c066 sea-orm-macros 0.2.4 2021-10-01 12:37:48 +08:00
Chris Tsang
64204b53fe sea-orm-macros 0.2.3 2021-09-22 17:47:58 +08:00
Chris Tsang
89c7359759 sea-orm-macros 0.2.2 2021-09-17 23:47:48 +08:00
Ari Seyhun
455fc4a934 Rewrite DeriveEntity 2021-09-07 22:08:57 +08:00
Marco Napetti
a4d70dfa55
Merge branch 'entity-format' into entity_model_macro 2021-09-07 10:09:34 +02:00
Marco Napetti
c273cf0a39 Manage schema_name attribute, add prelude export, update example 2021-09-07 10:04:33 +02:00
Marco Napetti
193cd5a29d Start working on EntityModel macro 2021-09-05 12:41:54 +02:00
Chris Tsang
a9d9b499d1 sea-orm-macros 0.2.0 2021-09-04 02:07:02 +08:00
Chris Tsang
6a078d0ac7 sea-orm-macros 0.1.1 2021-08-23 01:53:43 +08:00
Chris Tsang
63826e2f61 Fix build error 2021-08-23 01:53:43 +08:00
Chris Tsang
22b4b14a64 Publish sea-orm-macros 2021-08-08 01:43:29 +08:00
Chris Tsang
91023d06c5 Codegen: update ColumnDef 2021-06-19 20:53:08 +08:00
Billy Chan
07b58551af
Add proc_macro 2021-05-17 16:59:34 +08:00