1436 Commits

Author SHA1 Message Date
Chris Tsang
b51b1f63d8 Readme 2022-05-13 00:33:07 +08:00
Chris Tsang
62c1cc52fb
Update COMMUNITY.md 2022-05-13 00:11:12 +08:00
Frank Horvath
e43cb9e16a
Adding link to SNMP simulator (#719)
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-05-12 15:37:34 +08:00
Aniket Mane
aa81b69f1a
Add Quasar to COMMUNITY.md (#718)
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-05-12 15:36:38 +08:00
fibo
0b564bda5b
Add suzuya to COMMUNITY.md (#717)
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-05-12 15:35:36 +08:00
Eugeny
9f1ef7dc73
Update COMMUNITY.md (#716)
Add Warpgate to showcase

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-05-12 15:34:40 +08:00
Marco Napetti
aa74b4ce15
COMMUNITY.md (#715)
Add symbols to showcase

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-05-12 15:33:40 +08:00
Vasanth Kumar
4c9d18d2e1
Update COMMUNITY.md (#714) 2022-05-12 15:32:09 +08:00
Chris Tsang
1a37212940 Comment 2022-05-11 21:53:02 +08:00
Chris Tsang
e4b38a9898 sea-orm-migration 0.8.1 2022-05-10 23:33:44 +08:00
Chris Tsang
c466a169fb sea-orm-cli 0.8.1 2022-05-10 23:29:34 +08:00
Billy Chan
9d2cae44b3
Migrator CLI Fixup (#708)
* CI compile migrator CLI

* sea-orm-migration's CLI with only migration subcommand

* Fix clippy warnings

* Fixup

* `sea-orm-cli migrate init`: write sea-orm-migration version based on CLI version
2022-05-10 23:24:23 +08:00
Billy Chan
5f8776babf
CHANGELOG 2022-05-10 12:23:54 +08:00
Billy Chan
cdd6c29845
Fixup 2022-05-10 12:06:49 +08:00
Chris Tsang
2c4e1b2a67 Tweaks 2022-05-10 00:23:13 +08:00
Chris Tsang
59576b9d47 Sunset Postgres 9 2022-05-10 00:16:07 +08:00
Chris Tsang
2a153d0bb3 Changelog 2022-05-10 00:11:24 +08:00
Chris Tsang
4b1ec79cd6 sea-orm-migration 0.8.0 2022-05-10 00:09:28 +08:00
Chris Tsang
018ea94912 0.8.0 2022-05-10 00:07:57 +08:00
Chris Tsang
3e1079e7ef sea-orm-macros 0.8.0 2022-05-10 00:07:13 +08:00
Chris Tsang
e1f19ed801 sea-orm-cli 0.8.0 2022-05-10 00:04:48 +08:00
Chris Tsang
39b3726ebb sea-orm-codegen 0.8.0 2022-05-10 00:03:59 +08:00
Chris Tsang
6da53ea832 Build script 2022-05-09 23:59:32 +08:00
Chris Tsang
96a3c7f8f0 Changelog 2022-05-09 23:48:46 +08:00
Chris Tsang
fb69759be9 Build script 2022-05-09 23:47:04 +08:00
Billy Chan
cdc70f4fd9
Insert Default (#589)
* Insert default

* Update sea-query

* Fixup

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-05-09 23:46:38 +08:00
Chris Tsang
c8851646e8 Fixup 2022-05-09 22:33:59 +08:00
Chris Tsang
5dec47e441 Changelog 2022-05-09 22:09:52 +08:00
Billy Chan
840f8f6148
DeriveEntityModel macros override column name (#695)
* Override column name with the name of model field in `DeriveEntityModel` macros [issues]

* Fixup: trim prefix and tailing underscore

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-05-09 22:08:59 +08:00
Chris Tsang
6e1e0a3d80 Changelog 2022-05-09 22:07:35 +08:00
Chris Tsang
2da0429f41 Changelog 2022-05-09 22:06:23 +08:00
Billy Chan
5a123b36aa
DerivePrimaryKey with custom primary key column name (#694)
* `DerivePrimaryKey` with custom primary key column name

* Add test cases [issues]
2022-05-09 22:00:04 +08:00
Kirawi
23e95761ca
add is_changed to ActiveModelTrait (#683)
* add is_changed to ActiveModelTrait

* add test for `ActiveModelTrait::is_changed()`
2022-05-09 21:58:20 +08:00
Chris Tsang
415ec78681 Changelog 2022-05-09 21:40:12 +08:00
Chris Tsang
1283d9d325 Tweaks 2022-05-09 21:39:41 +08:00
Viktor Bahr
3518acf1b9
CLI command to generate a new migration (#656)
* feat(cli): add 'migration generate' subcommand

This subcommend will create a new, empty migration.

* feat(deps): add chrono crate

This crate will allow me to fetch the current date and time required for
generating the migration filename.

* feat(cli): generate migration filename

* feat(cli): read template, replace migration name

* feat(cli): write modified content to file

* feat(deps): add regex crate

Allows me to parse the lib.rs file containing the migrator logic.

* fix(cli): add missing chrono import

* feat(cli): mod declaration for new migration

This modifies the existing migator file, adding a module declaration for
the newly generated migration.

* feat(cli): regenerate migration vector

* feat(cli): write updated migrator file to disk

This completes updating the migrator file with the new migration
information.

* docs(cli): additional docstring

* refactor(cli): move logic into functions

* test(cli): create new migration happy path

* test(cli): update migrator happy path

* fix(cli): dedicated tmp dir for test

This avoids conflicts with the other tests.

* style(cli): align generated code with cargofmt

As suggested by @billy1624 in the review of #656.

* feat(cli): harden regex against extra spaces

As suggested by @billy1624 in the review of #656.

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-05-09 21:31:12 +08:00
Chris Tsang
b8214b233c Edit 2022-05-09 21:22:28 +08:00
Chris Tsang
6c17a62084 Changelog 2022-05-09 21:21:48 +08:00
Chris Tsang
468d704bb0
Merge pull request #677 from SebastienGllmt/patch-1
Derive extra error traits
2022-05-09 21:19:02 +08:00
Chris Tsang
30e7f42233
Merge pull request #703 from ttys3/axum_example_v0.5.4
chore: update axum to 0.5.4 and fix up .env database name typo
2022-05-09 21:15:20 +08:00
Chris Tsang
2794410a08 Update sea-schema 2022-05-09 21:02:53 +08:00
Chris Tsang
25f3db731b
Merge pull request #666 from SeaQL/sea-schema/dump-sea-orm-dep
Dump SeaORM Dependency from SeaSchema's Migrator
2022-05-09 19:48:43 +08:00
Chris Tsang
b622a6e1aa Tweaks 2022-05-09 18:37:37 +08:00
Chris Tsang
31cdecf549 Use SchemaProbe fully 2022-05-09 18:17:44 +08:00
Chris Tsang
07c8af2b3a Use sea-schema's SchemaProbe 2022-05-09 17:04:12 +08:00
Chris Tsang
c466e46ae0 Fix tests 2022-05-09 14:44:12 +08:00
Chris Tsang
e0d7d2bc78 Fix tests 2022-05-09 13:51:21 +08:00
Chris Tsang
730b52088f Add tests 2022-05-09 12:31:12 +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