Billy Chan
e96fa73a4f
README
2024-10-15 15:56:32 +08:00
Billy Chan
78e0c0584d
README
2024-10-15 15:22:07 +08:00
Chris Tsang
e6af647ed4
README
2024-10-14 12:54:14 +01:00
Billy Chan
8be5c2648b
Add ColumnDef::get_column_default
getter ( #2387 )
2024-10-08 11:32:02 +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
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
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
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
伊欧
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
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
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
651c419b1b
Fix clippy warnings
2024-08-02 14:45:14 +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
4709d92ad2
docs
2024-06-21 17:36:47 +08:00
Billy Chan
5e04b3b551
fmt
2024-06-19 20:45:39 +08:00
Billy Chan
1c03a28c8a
docs
2024-06-19 20:40:39 +08:00
Billy Chan
b4506c0647
MySQL insert on conflict do nothing ( #2244 )
...
* MySQL insert on conflict do nothing
* on_conflict_do_nothing
* clippy
2024-06-19 20:09:30 +08:00
Chris Tsang
ad9f3c4112
Doc
2024-06-19 12:58:24 +01:00
Chris Tsang
1cdbbd4025
Added QuerySelect::tbl_col_as
2024-06-19 12:57:55 +01:00
Chris Tsang
a9c2e1bd0b
FIX YOU
2024-06-19 12:41:24 +01:00
Jérémie Drouet
055dbf02d4
fix: update setting search path in postgres ( #2241 )
...
* 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>
2024-06-19 16:05:14 +08:00
Chris Tsang
7678624cd9
README
2024-05-28 16:29:46 +01:00
Chris Tsang
e75fa6aa49
README
2024-05-28 16:29:19 +01:00
Chris Tsang
3865ca3729
README
2024-05-28 16:28:34 +01:00
Chris Tsang
4ae267d808
README
2024-05-28 16:24:24 +01:00
Billy Chan
b575072aa5
README
2024-05-28 16:01:06 +08:00
Diptesh Choudhuri
59fb6c11b9
feat: add function to allow order by nulls ( #2228 )
...
* feat: add function to allow order by nulls
* fix: make the correct import
* fix: use correct backend for doc tests
* chore: add space
2024-05-27 09:00:56 +01:00
Chris Tsang
2b6e72474a
Expose get_xxx_connection_pool
by default #2233
2024-05-23 14:08:09 +02:00
Dmitrii Aleksandrov
605ea19672
Merge branch 'master' into set-if-not-equals
2024-05-09 23:08:32 +04:00
Chris Tsang
e77cc5fa65
Merge pull request #2186 from SeaQL/entity-behavior
...
Associate `ActiveModel` to `EntityTrait`
2024-05-09 17:53:31 +01:00
Chris Tsang
c2b8c44118
Merge pull request #2185 from SeaQL/pk-arity-trait
...
`PrimaryKeyArity` trait
2024-05-09 17:50:34 +01:00
Dmitrii Aleksandrov
e162a1be9e
Add ActiveValue::try_as_ref() ( #2197 )
2024-05-09 17:44:37 +01:00
Billy Chan
aa626fc1fd
clippy
2024-05-06 13:53:41 +08:00
Billy Chan
33f4659db7
clippy
2024-05-03 13:46:38 +08:00
Billy Chan
e6649988dd
docs
2024-04-26 11:56:52 +08:00
Joe
c724ec5751
Add method for retrieiving column names ( #2148 )
...
* Add method for retrieiving column names
* Address PR comments as well as add test
2024-04-17 23:12:57 +01:00
Dmitrii Aleksandrov
b2b0a404e4
Add ActiveValue::set_if_not_equals()
2024-04-10 23:01:07 +04:00
Chris Tsang
1c269a081f
Associate ActiveModel
to EntityTrait
2024-04-03 21:14:22 +01:00
Chris Tsang
fe3e92bfdf
Make use of ARITY
2024-04-03 20:51:39 +01:00
Billy Chan
f066b7a4d2
PrimaryKeyArity
trait
2024-04-03 12:00:46 +08:00
Billy Chan
c8c02f6f6e
Upstream Changes - 5 ( #2176 )
...
* Upstream Changes - 5
* clippy
* more
2024-03-28 16:25:31 +08:00
Billy Chan
b866236704
examples: deprecate actix3_example ( #2154 )
2024-03-13 13:46:53 +08:00
Dmitrii Aleksandrov
159c53e65f
Add RelationDef::from_alias()
( #2146 )
...
* Add `RelationDef::from_alias()`
* Fix code formatting
* Fix code formatting again
2024-03-10 23:55:22 +00:00
Billy Chan
f3967fdaca
Upstream Changes - 1 ( #2145 )
...
* upstream changes
* universal `#[sea_orm_macros::test]`
* fix
* fix
* `ColumnTrait::into_returning_expr`
* fix
* fix
* Do not pub sqlx_common
---------
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2024-03-10 18:14:46 +00:00
Billy Chan
b775027fee
Explicit StringLen
on ColumnType::String
( #2123 )
2024-03-05 15:31:58 +08:00
Forest Anderson
88fafa57d9
Add mock feature flag docs ( #2109 )
2024-02-28 20:04:12 +00:00
Billy Chan
cef380b977
SQLite type mappings ( #2077 )
...
* sqlite: deps
* sqlite: update data type mappings
* sqlite: decimal test cases
* sqlite: try negative numbers
* fixup
* fixup
* fmt
* clippy
* fixup
* fixup
* fixup
* refactor
* fix
* Drop the use of `rust_decimal_macros` (#2078 )
* sqlite: decimal -> real
* revert
* Bump dependencies
* Fixup
* Fixup
* Fixup
* Fixup
* Refactor
* Refactor
* Refactor
2024-02-05 14:42:55 +08:00
Billy Chan
76f73e778d
README
2024-02-02 17:01:25 +08:00