* Insert many allow active models to have different column set
* comment and fmt
* comment
* clippy
* Fixup
* Refactor
* Docs and restore old implementation
---------
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>
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
* fix: update setting search path in postgres
When using multiple schemas in search path for postgres, using quoted string breaks the ability to use multiple schemas.
Removing the quotes fixes it.
* Add test cases
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>