2638 Commits

Author SHA1 Message Date
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
Billy Chan
aa0bbd9e01
CI 2024-08-09 23:48:18 +08:00
Billy Chan
6cb437a989
CI 2024-08-09 23:40:28 +08:00
Billy Chan
b0a7ceb4d1
Fix examples 2024-08-09 23:31:41 +08:00
Billy Chan
bf65bfd205
Fix examples 2024-08-09 22:22:51 +08:00
Billy Chan
eb4ce3a0f4
update examples 2024-08-09 18:33:11 +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
c43e15e2cd
Update README.md 2024-08-09 11:16:54 +08:00
Billy Chan
c2fc62a903
GraphQL based Admin Dashboard with Loco and Seaography (#2297)
* backend

* frontend

* frontend

* README

* CI

* fmt

* docs

* edit

* rename

* Bump seaography to 1.0

* Cargo.lock
2024-08-09 11:13:45 +08:00
Billy Chan
dbe9e8f586
CI: update DB versions 2024-08-06 12:25:08 +08:00
Billy Chan
7e433df171
CHANGELOG 2024-08-02 17:26:48 +08:00
Billy Chan
507c1fd732
Cleanup runtime features 2024-08-02 17:21:57 +08:00
Billy Chan
5a932afb33
Cleanup runtime features 2024-08-02 17:21:18 +08:00
Billy Chan
6f0cf6283a
Bump SeaQL crates 2024-08-02 17:14:24 +08:00
Chris Tsang
8475ea0346 pub use sqlx 2024-08-02 10:13:59 +01:00
Chris Tsang
9675dd0bf3 Optimize try_get when pre is empty 2024-08-02 10:10:15 +01:00
Billy Chan
2c70ad10be
update examples 2024-08-02 17:08:29 +08:00
Billy Chan
4587d36e6f
1.0.0 2024-08-02 17:08:28 +08:00
Billy Chan
649f5527fc
Update build-tools/bump.sh 2024-08-02 17:08:28 +08:00
Billy Chan
651c419b1b
Fix clippy warnings 2024-08-02 14:45:14 +08:00
Billy Chan
eafaeb4d4d
edit 2024-07-24 11:48:23 +08:00
Billy Chan
825cb14e39
fmt 2024-07-17 10:46:23 +08:00
Chris Tsang
b14c143110 Add examples 2024-07-15 17:31:42 +01:00
Billy Chan
23523f0aac
CHANGELOG 2024-07-15 14:09:28 +08:00
Billy Chan
9fd5523d65
Examples: Loco x Seaography (#2270)
* Examples: Loco x Seaography

* fmt

* Edit
2024-06-26 14:50:00 +08:00
Billy Chan
c3cd3f347d
CHANGELOG 2024-06-25 11:50:11 +08:00
Billy Chan
d87f586bbf
update examples 2024-06-25 11:50:11 +08:00