* 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>
* 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>
* 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>
* 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>
* 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>
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.
* 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
* 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>