2665 Commits

Author SHA1 Message Date
Billy Chan
7b1495d168
Upstream Pro - 1 (#2415)
* Added `ColumnTrait::enum_type_name()` to signify enum types

* dep

* Added `DbBackend::boolean_value()` for database dependent boolean value

* Bump sea-query

* fmt
2024-12-02 14:33:21 +08:00
Billy Chan
b83a072123
clippy 2024-12-02 14:01:13 +08:00
Billy Chan
9d0f7e3917
clippy 2024-12-02 13:56:27 +08:00
Chris Tsang
2eb398efa9 Bump rust version 2024-12-01 13:20:37 +00:00
Chris Tsang
5f1a9d2a46 update examples 2024-11-04 01:01:05 +00:00
Chris Tsang
4a0fbcc43d 1.1.1 2024-11-04 01:01:05 +00:00
Chris Tsang
8cd03f7e0e
Update CHANGELOG.md 2024-10-25 11:12:17 +01:00
Chris Tsang
8464f79426
Update CHANGELOG.md 2024-10-25 11:10:05 +01:00
Chris Tsang
907a1870f5
Update CHANGELOG.md 2024-10-25 11:09:49 +01:00
Jonas Platte
ead131d937
Use input ident instead of associated type projections in ActiveModel derive (#2349)
* Use input ident instead of associated type projections in ActiveModel derive

* Add a test
2024-10-25 11:04:35 +01:00
Billy Chan
647c93c464
Update example Cargo.lock 2024-10-18 09:36:33 +08:00
Billy Chan
72b1570591
Bump seaography 2024-10-17 15:21:20 +08:00
Billy Chan
0dd2b2290a
Bump sea-schema 2024-10-17 15:21:01 +08:00
Billy Chan
9efc0522d6
Bump sea-query 2024-10-17 15:20:44 +08:00
Billy Chan
79695683b7
use arduino/setup-protoc@v3 2024-10-15 16:38:49 +08:00
Billy Chan
e96fa73a4f
README 2024-10-15 15:56:32 +08:00
Billy Chan
78e0c0584d
README 2024-10-15 15:22:07 +08:00
Billy Chan
1d08ea376d
Re-enable loco-rs examples 2024-10-15 14:51:23 +08:00
Billy Chan
d13e2c8e23
CHANGELOG 2024-10-15 14:36:06 +08:00
Billy Chan
ab660d418d
update examples 2024-10-15 14:35:40 +08:00
Billy Chan
0c5668dcd8
1.1.0 2024-10-15 14:35:37 +08:00
Billy Chan
4fbf1a0fdf
CHANGELOG 2024-10-15 14:34:33 +08:00
Billy Chan
05e85abf46
update examples 2024-10-15 14:34:33 +08:00
Billy Chan
fecc43196e
1.1.0-rc.3 2024-10-15 14:34:33 +08:00
Chris Tsang
e6af647ed4 README 2024-10-14 12:54:14 +01:00
Billy Chan
4e3acb117e
CHANGELOG 2024-10-08 11:33:06 +08:00
Billy Chan
8be5c2648b
Add ColumnDef::get_column_default getter (#2387) 2024-10-08 11:32:02 +08:00
Billy Chan
51d8125d96
CHANGELOG 2024-10-04 17:45:01 +08:00
Billy Chan
1218b1e942
update examples 2024-10-04 17:44:29 +08:00
Billy Chan
c64f48d85f
1.1.0-rc.2 2024-10-04 17:44:26 +08:00
Billy Chan
6c10469d6c
CHANGELOG 2024-10-04 17:42:13 +08:00
Sebastian Goll
31ef8c76df
Allow distinct types in schema::custom() (#2326)
* Allow distinct types in schema::custom()

* Allow `custom_null` to take column name and alias of different `IntoIden` types

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 17:41:46 +08:00
Aaron Ingalls
cb5520eb67
Add pk_uuid schema helper (#2329)
* Add pk_uuid schema helper

* CHANGELOG

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 17:40:08 +08:00
Colin Woodbury
8339dbb8df
DatabaseConnection directly from PgPool (#2348)
* feat(postgres): create `DatabaseConnection` directly from `PgPool`

This allows sqlx-based connection pools that were already on-hand to be
easily converted into SeaORM types.

* Move `From` impls into driver

* impls for MySQL and SQLite

* CHANGELOG

* fmt

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 17:19:56 +08:00
Jonathan Creekmore
fb442298dd
call EnumIter::get using fully qualified syntax (#2321)
* call `EnumIter::get` using fully qualified syntax

`itertools` version 0.13.0 added a `get` method that takes precedence
over the `EnumIter::get` method. The `EnumIter` derive should be calling
the method fully-qualified to ensure that the local version is called
rather than the method that is provided by the `Itertools` trait. This
was fixed in `strum` 0.26.x, but since this is a forked/adapted version
of the `EnumIter` derive, it requires the same fix .

* CHANGELOG

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 17:11:25 +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
Gaëtan
61516e188a
Update DeriveActiveEnum doc (#2345)
* Update DeriveActiveEnum doc

* One more line

* CHANGELOG

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 16:49:55 +08:00
Alvaro Parker
bfd21e92e3
Fix typos (#2360)
* fix typos

* CHANGELOG

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 16:42:52 +08:00
James Lucas
ed77b64d88
Update ouroboros (#2353)
* Update `ouroboros`

0.17.x has a dependency on `proc-macro-error`, which is unmaintained
per https://rustsec.org/advisories/RUSTSEC-2024-0370

* CHANGELOG

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 16:42:41 +08:00
Billy Chan
b3db9dec3a
Fix clippy warnings (#2379)
* Fix clippy warnings

* fmt

* Disable loco example CI for now
2024-10-04 16:12:21 +08:00
Billy Chan
039e4423d3
CI: run on Node.js v20 2024-09-05 13:36:16 +08:00
Billy Chan
b68e770f97
CHANGELOG 2024-08-27 16:56:44 +08:00
Billy Chan
b0a48f4914
CHANGELOG 2024-08-27 16:15:58 +08:00
Billy Chan
01cd94a83b
codegen: fix ColumnType to Rust type resolution (#2313) 2024-08-23 17:28:16 +08:00
Spencer Ferris
4553160685
feat: Support for lazy database connections (#2268)
Add support for creating DB connection pools without establishing
connections up front. This is already supported by SQLx via the
[Pool::connect_lazy](https://docs.rs/sqlx/latest/sqlx/struct.Pool.html#method.connect_lazy)
method.

This PR adds a new `connect_lazy` option to `database::ConnectOptions`.
If set to `true`, the SQLx `Pool` will be created using the
`Pool::connect_lazy_with` method; otherwise, the `Pool::connect_with`
method will be used (e.g., the existing behavior). This "lazy" behavior
is implemented for each DB variant (Postgres/MySQL/SQLite).

This was discussed previously
[here](https://github.com/SeaQL/sea-orm/discussions/1645), but it
appears support was never added to SEA ORM directly.
2024-08-21 09:29:07 +01:00
Billy Chan
0b956dcd2b
Run CI for 1.*.x branches 2024-08-20 17:18:28 +08:00
伊欧
85fc3d0440
feat: Add support for async proxy connection. (#2278)
* Try to attach async to proxy trait first.

* Update proxy connection to support async.

* Add example.

* Try to fix CI.

* Remove CI for cloudflare worker example at this moment...

* Improve SQL serializer
2024-08-20 10:15:48 +01:00
Billy Chan
64e8b528b1
Update examples/react_admin 2024-08-20 12:56:34 +08:00
Billy Chan
368b1126f7
Fix examples CI 2024-08-12 12:39:48 +08:00
Billy Chan
c28ed57a0a
CHANGELOG 2024-08-09 23:51:12 +08:00