2627 Commits

Author SHA1 Message Date
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
Billy Chan
dbf475bf9d
1.0.0-rc.7 2024-06-25 11:50:11 +08:00
Jubilee
64ca6690b0
Fix doc build (#2267)
* Demand time 0.3.35

Fixes docs builds

* Check in Cargo.lock

See the T-cargo change in guidance:
- https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html

* Bump dependency

* Revert gitignore

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-06-25 11:47:13 +08:00
Billy Chan
7d537748b7
Bump dependency 2024-06-25 10:45:18 +08:00
Billy Chan
4709d92ad2
docs 2024-06-21 17:36:47 +08:00
Billy Chan
5e04b3b551
fmt 2024-06-19 20:45:39 +08:00
Billy Chan
9daabb19ee
CHANGELOG 2024-06-19 20:44:15 +08:00
Billy Chan
17b2f6e98e
update examples 2024-06-19 20:41:59 +08:00
Billy Chan
3758f0c51d
1.0.0-rc.6 2024-06-19 20:41:58 +08:00
Billy Chan
e1ce7c50b1
CHANGELOG 2024-06-19 20:40:39 +08:00
Billy Chan
1c03a28c8a
docs 2024-06-19 20:40:39 +08:00
Billy Chan
bca933a055
CLI: generate has_one relation for foreign key of unique index / constraint (#2254)
* CLI: generate `has_one` relation for foreign key of unique index / constraint

* Primary key column is unique

* Bump dependency

* Fix
2024-06-19 20:40:07 +08:00