2179 Commits

Author SHA1 Message Date
Billy Chan
d099669ad8
Cleanup ambiguous glob imports (#1692)
* Cleanup ambiguous glob imports

* fix
2023-06-06 15:00:05 +08:00
Vojtěch Jungmann
126f96b5c6
community: Add Portfolio to COMMUNITY.md (#1686) 2023-06-06 11:07:59 +08:00
Billy Chan
0c7e456251
CHANGELOG 2023-06-03 11:43:34 +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
Chris Tsang
00c90b2d79 Changelog 2023-06-01 18:30:49 +08:00
Clément Guiton
3ccb9cdbf7
Feat: Expose ping method from SQLx (#1627)
* feat: add connection.ping method

* fmt

* impl `ConnectionTrait::ping` method for `SchemaManagerConnection`

* Mock connection should always be online

* remove needless clippy lint

* fmt

* Remove needless instrument

* Update src/driver/sqlx_sqlite.rs

* <feat>(Ping) removed ping() from ConnectionTrait

* removed ping from transaction

* removed unused imports

* Revert

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-06-01 18:21:38 +08:00
Joseph D
3343e2118b
Adding ruuth to COMMUNITY.md (#1681) 2023-06-01 18:11:08 +08:00
Billy Chan
0f50f55ce4
CHANGELOG 2023-05-29 20:39:44 +08:00
Billy Chan
33f3f9282d
feat: implement ColumnTypeTrait for ColumnDef (#1576) 2023-05-29 20:35:02 +08:00
df51d
0b15f4f5e2
change: rename core crate to service in examples (#1662)
* change: rename `core` crate to `service` in examples

* fix(jsonrpsee-example): broken dependency
2023-05-23 10:33:44 +08:00
Billy Chan
59e3ba8095
0.12.0-rc.2 2023-05-19 22:32:21 +08:00
Panagiotis Karatakis
3300336b1a
Expand SeaORM entity generator with Seaography related data (#1599)
* Add DeriveRelatedEntity macro

* Add generation for related enum and seaography

* Add seaography cli param

* update codegen tests

* Fix DeriveRelatedEntity macro doc and includes

* Fix all RelatedEntity variants for RelationBuilder

* Add tests for code

* Cargo format

* Fix clippy code

* Fix format

* Fix unit tests

* Fix unit tests

* Provide default for seaography::RelationBuilder

* Update changelog

* Update tests

* Modify code to match feedback
* Bring old Related Impl trait generation
* Modify DeriveRelatedEntity to gen impl seaography::RelationBuilder
* Generate RelatedEntity enum when seaography flag is enabled

* Update documentation

* Update Changelog

* Fix format errors

* Fix code generation
* relations with suffix are definition based
* Rev => Reverse easier to read
* snake_case to cameCase for name generation

* Fix unit tests

* Update lib.rs

* derive `seaography::RelationBuilder` only when `seaography` feature is enabled

* Try constructing async-graphql root for "related entity" and "entity" without relation

* Update demo

* CHANGELOG

* Update Cargo.toml

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

* Revert "Update Cargo.toml"

This reverts commit 6b1669836a4fb5040bfb08999f0cf640c74dc64d.

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-05-19 22:14:46 +08:00
Billy Chan
fd6c303740
CHANGELOG 2023-05-18 16:54:15 +08:00
Billy Chan
44a94d65d2
Bump SeaQuery and SeaSchema to new latest RC version (#1661) 2023-05-18 16:51:13 +08:00
Billy Chan
b4eecf9cd8
Create release-bot.yml 2023-05-08 14:47:55 +08:00
Billy Chan
39d00ed8ac
CHANGELOG 2023-05-03 19:20:47 +08:00
Abdulqudduus Babalola
e872436547
feat: add support for space-separated migration names (#1570)
* feat: add ability to create space separated migration names

* fmt

* Trim whitespace

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-05-03 19:12:09 +08:00
Jared Mackey
9b3c81c281
Add example schema for #1582 (#1585) 2023-05-03 16:48:37 +08:00
Billy Chan
381e175847
Test CRUD on bit datatype (#1612) 2023-05-03 12:41:52 +08:00
Billy Chan
d514b511a4
Showcase how to define entity with dynamic table name (#1622) 2023-05-03 11:12:23 +08:00
Chris Tsang
692d3bd582 Changelog 2023-04-27 23:44:54 +08:00
Chris Tsang
905834a511 Changelog 2023-04-27 23:43:37 +08:00
Chris Tsang
cc22f479d3 Changelog 2023-04-27 23:40:25 +08:00
Chris Tsang
cd00ba371d Changelog 2023-04-27 23:34:55 +08:00
Chris Tsang
a6646cdd2d cargo fmt 2023-04-26 21:42:18 +08:00
Chris Tsang
9e5900e25b cargo fmt 2023-04-26 21:41:45 +08:00
Chris Tsang
2746271190 Changelog 2023-04-26 21:32:16 +08:00
Chris Tsang
28a5de09d6
Merge pull request #1615 from SeaQL/pulls/1597
Pulls/1597
2023-04-26 18:33:54 +08:00
Billy Chan
e6b6629733 Revert SeaORM prelude
Add `stream_partial_model` to `Select<E>` and `SelectTwo<E,F>`

Minor refactoring

fmt

Add `into_partial_model` to `Cursor<S>`

refactoring

Add test cases

Fix test cases

More test cases

Move partial_model tests
2023-04-26 18:28:53 +08:00
ForzenString
744e063222 add SelectColumns only modify select columns
add `PartialModelTrait` for a part of model

re-export `PartialModelTrait`

cargo fmt

add fn`into_partial_model` on `Select`&`SelectTwo`

add `DerivePartialModel` to impl `PartialModel`

add macro `DerivePartialModel` to `sea-orm`

disambiguate `SelectColumns` function

fix macro error

cargo fmt && cargo clippy

move `SelectColumns` from helper.rs to traits.rs

cargo fmt

Reduce nest hell of load attribute argument fetch

 test `DerivePartialModel`  input parse

`DerivePartialModel` not derive with generic

fix `DerivePartialModel` code generate error

remove unused use

cargo fmt

add `into_partial_model` for `SelectTwoMany`
2023-04-26 18:28:44 +08:00
Billy Chan
13bb6e6079
CHANGELOG (SeaQL/sea-orm#1582) 2023-04-25 15:26:07 +08:00
Billy Chan
e9104bc9c3
CHANGELOG 2023-04-24 21:15:17 +08:00
Billy Chan
2bb1ddc9b2
CHANGELOG 2023-04-24 18:01:18 +08:00
Billy Chan
c24f8e8e36
CHANGELOG 2023-04-24 17:59:59 +08:00
Billy Chan
9ca01b3e7c
Upgrade tracing-subscriber dependency to 0.3.17 (#1609)
* Upgrade `tracing-subscriber` dependency to 0.3.17

* Revert "fix: `regex` dep should enable `unicode` feature (#1605)"

This reverts commit 41d9a853342155e0b7df4afb15990225b1c8a981.
2023-04-24 14:21:15 +08:00
Billy Chan
0bc6fdbc2b
CHANGELOG 2023-04-24 12:05:04 +08:00
Billy Chan
b2d78d43da
FromQueryResult proc_macro no longer add TryGetable trait bound to generic types (#1603)
* `FromQueryResult` proc_macro no longer add `TryGetable` trait bound to generic types

* clippy
2023-04-24 11:34:35 +08:00
Billy Chan
87998fdf49
CHANGELOG 2023-04-23 12:31:30 +08:00
Billy Chan
41d9a85334
fix: regex dep should enable unicode feature (#1605) 2023-04-22 01:03:13 +08:00
Billy Chan
cf85d96e44
clippy 2023-04-22 01:02:15 +08:00
Billy Chan
c33cbb23fa
ci: disable clippy checks on sea-orm-cli until we upgraded clap to v4 (clap-rs/clap#4849) 2023-04-22 00:50:46 +08:00
Billy Chan
9a727ac4b0
ci: Do not deny warnings until we upgraded clap to v4 (clap-rs/clap#4849) 2023-04-22 00:33:11 +08:00
Billy Chan
f876927f53
CHANGELOG 2023-04-13 16:21:22 +08:00
Billy Chan
d45bb5b304
Support composite primary key of length up to 12 (#1508)
* feat: support composite primary key of length up to 12

* induction proof

* docs

* revert tests

* testing cursor by 4+ columns
2023-04-13 16:18:47 +08:00
Billy Chan
dd261f2a2f
CHANGELOG 2023-04-13 11:48:39 +08:00
Billy Chan
fbb16c73fa
Relation join on AND / OR condition (#1433) 2023-04-13 11:48:01 +08:00
Billy Chan
ef78b6d3ff
CHANGELOG 2023-04-13 11:17:18 +08:00
Billy Chan
2c082558df
Generate entity for duplicated many-to-many paths (#1435)
* Generate entity for duplicated many-to-many paths

* CI: run cargo fmt with nightly channel
2023-04-13 11:16:49 +08:00
Billy Chan
8da8c0a444
CHANGELOG 2023-04-13 11:14:52 +08:00
Billy Chan
a806898f74
feat(migration): configurable migration table name (#1511) 2023-04-13 11:12:01 +08:00