Clément Guiton
3ccb9cdbf7
Feat: Expose ping method from SQLx ( #1627 )
...
* feat: add connection.ping method
* fmt
* impl `ConnectionTrait::ping` method for `SchemaManagerConnection`
* Mock connection should always be online
* remove needless clippy lint
* fmt
* Remove needless instrument
* Update src/driver/sqlx_sqlite.rs
* <feat>(Ping) removed ping() from ConnectionTrait
* removed ping from transaction
* removed unused imports
* Revert
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-06-01 18:21:38 +08:00
Billy Chan
44a94d65d2
Bump SeaQuery and SeaSchema to new latest RC version ( #1661 )
2023-05-18 16:51:13 +08:00
Billy Chan
381e175847
Test CRUD on bit datatype ( #1612 )
2023-05-03 12:41:52 +08:00
Billy Chan
d514b511a4
Showcase how to define entity with dynamic table name ( #1622 )
2023-05-03 11:12:23 +08:00
Billy Chan
e6b6629733
Revert SeaORM prelude
...
Add `stream_partial_model` to `Select<E>` and `SelectTwo<E,F>`
Minor refactoring
fmt
Add `into_partial_model` to `Cursor<S>`
refactoring
Add test cases
Fix test cases
More test cases
Move partial_model tests
2023-04-26 18:28:53 +08:00
ForzenString
744e063222
add SelectColumns
only modify select columns
...
add `PartialModelTrait` for a part of model
re-export `PartialModelTrait`
cargo fmt
add fn`into_partial_model` on `Select`&`SelectTwo`
add `DerivePartialModel` to impl `PartialModel`
add macro `DerivePartialModel` to `sea-orm`
disambiguate `SelectColumns` function
fix macro error
cargo fmt && cargo clippy
move `SelectColumns` from helper.rs to traits.rs
cargo fmt
Reduce nest hell of load attribute argument fetch
✅ test `DerivePartialModel` input parse
`DerivePartialModel` not derive with generic
fix `DerivePartialModel` code generate error
remove unused use
cargo fmt
add `into_partial_model` for `SelectTwoMany`
2023-04-26 18:28:44 +08:00
Billy Chan
6833529441
feat: String
parameters accept any Into<String>
( #1439 )
2023-04-11 12:51:51 +08:00
Iskandarov Lev
6ae515961c
implemented ( #1464 )
2023-04-11 11:23:14 +08:00
Billy Chan
f646aa7a70
chore: re-export sea_query::BlobSize
in sea_orm::entity::prelude
( #1548 )
2023-03-20 18:52:26 +08:00
Reverier
1161bc0f4a
set unselected Column
of type Option<T>
to None ( #1513 )
...
* Support `None` value for unselected Optional columns, closes #1507
* Support `None` value for unselected Optional columns, closes #1507
* fix rustfmt and cfg control issues
* add test case for #1513
2023-03-16 21:24:58 +08:00
Billy Chan
4b9038ea71
fix: codegen write binary column definition ( #1529 )
2023-03-10 18:01:33 +08:00
Billy Chan
018dd9c5ad
clippy
2023-03-09 12:26:27 +08:00
Chris Tsang
56e4b4337b
Improve API & Example
2023-02-02 11:21:00 +08:00
Chris Tsang
83c0732395
load_many_to_many
2023-02-02 09:38:30 +08:00
Chris Tsang
0670827148
Improve test cases
2023-02-02 07:46:38 +08:00
Chris Tsang
d8a2428f46
Fixup
2023-02-02 01:47:28 +08:00
Chris Tsang
d11998bf9e
More tests
2023-02-02 01:31:35 +08:00
Billy Chan
b21abf617f
Fix clippy warnings ( #1437 )
2023-01-31 16:46:44 +08:00
Billy Chan
4e3a45c2f7
Fix clippy warnings ( #1436 )
2023-01-31 15:52:57 +08:00
Billy Chan
a6bd91a78b
Use ActiveEnum
field as composite primary key ( #1414 )
...
* Use ActiveEnum field as part of composite primary key
* Try unique constraint failed
2023-01-30 21:47:49 +08:00
Billy Chan
08a5e87e22
Replace SeaORM's ColumnType
( #1395 )
...
* Replace SeaORM's `ColumnType`
* Bump SeaQuery's version
* Fix merge conflict
* refactor
2023-01-29 11:06:01 +08:00
Billy Chan
71dbffc725
Fix clippy ( #1426 )
...
* Fix clippy
* Fix clippy
2023-01-27 18:50:20 +08:00
Chris Tsang
b3e4d1c1cf
RecordNotFound -> RecordNotUpdated
2023-01-25 15:43:44 +08:00
Chris Tsang
5cdcdbfc1c
Add testcase
2023-01-19 01:38:03 +08:00
Chris Tsang
03207fbda9
Use rows_affected
when DB does not support returning
2023-01-18 21:18:04 +08:00
Billy Chan
e2b796b093
Cont. feat: expose database connection to ActiveModelBehaviour
's methods ( #1328 )
...
* feat: expose database connection to `ActiveModelBehaviour`'s methods (#1145 )
* Make ActiveModelTrait async
* Add tests
* refactoring
Co-authored-by: teenjuna <53595243+teenjuna@users.noreply.github.com>
2023-01-12 17:22:46 +08:00
Billy Chan
e9df3aa01d
Casting columns as a different data type on select, insert and update ( #1304 )
...
* Cast select and value
* Refactoring
* Test casting Postgres citext
* Fixup
* Revert
* Add test cases
* Fixup
* Rename methods
2023-01-12 14:56:11 +08:00
Billy Chan
c49a8ac843
Fix merge conflict ( #1386 )
...
* Fix merge conflict
* remove unnecessary clone
2023-01-11 15:27:34 +08:00
Billy Chan
cbd7a8d1c9
Cleanup the use of vec![]
( #1367 )
...
* Public methods accept any IntoIterator as argument
* refactoring
2023-01-11 14:17:06 +08:00
Billy Chan
b5e984ca4a
Postgres insert many will throw RecordNotInserted error if non of them are being inserted ( #1021 )
2023-01-11 14:16:35 +08:00
Billy Chan
4f5a15a99f
Support various UUID formats that are available in uuid::fmt
module ( #1325 )
...
* Support various UUID formats that are available in `uuid::fmt` module
* clippy
* fixup
2023-01-11 14:13:15 +08:00
Chris Tsang
4210526ec1
Merge pull request #1311 from SeaQL/select-into-tuple
...
Select into tuple
2023-01-10 15:20:14 +08:00
Chris Tsang
5c93253877
Tests
2023-01-09 14:46:19 +08:00
Billy Chan
e246d3faaf
Cont. Upgrade to SeaQuery 0.28.0 ( #1366 )
...
* Upgrade to SeaQuery 0.28.0
* Remove unnecessary heap allocation
* Upgrade sea-query-binder
* Upgrade sea-schema
* Fix
* Upgrade sea-schema
* refactoring
Co-authored-by: Ivan Krivosheev <py.krivosheev@gmail.com>
2023-01-05 20:41:28 +08:00
Billy Chan
e927a0e5f5
Execute unprepared statement ( #1327 )
2023-01-05 14:08:18 +08:00
Chris Tsang
eeec2cf06f
Merge pull request #1238 from karatakis/dataloader
...
[PIP] Simple data loader
2022-12-28 15:59:04 +08:00
Billy Chan
1135c117c3
fixup
2022-12-20 15:56:42 +08:00
Billy Chan
2f00a8757d
Merge branch 'master' into select-into-tuple
2022-12-20 15:51:06 +08:00
Billy Chan
d205338f3f
Try custom vector field ( #1273 )
2022-12-19 17:08:32 +08:00
Billy Chan
69eb4b8ea8
Refactor the use of deprecated chrono methods ( #1312 )
2022-12-16 18:14:25 +08:00
Billy Chan
0be16bad16
Add tests
2022-12-15 21:24:18 +08:00
Billy Chan
70c4a3a23e
Select into tuple
2022-12-15 21:24:10 +08:00
Billy Chan
7838782718
Transaction tests
2022-12-02 13:37:37 +08:00
Billy Chan
08cb44028e
Support bigdecimal::BigDecimal ( #1258 )
...
* Fix: fields with type `Option<T>` are always nullable
* Support BigDecimal
2022-12-01 12:53:19 +08:00
Panagiotis Karatakis
f3910c329b
Fix shared related item
2022-11-25 12:01:58 +02:00
Chris Tsang
45b391f434
Improve testcase
2022-11-23 23:47:14 +08:00
Chris Tsang
6c7a162f05
cargo fmt
2022-11-23 22:47:41 +08:00
Panagiotis Karatakis
4323a0cb07
Add integration tests
2022-11-22 13:46:22 +02:00
Billy Chan
4d8645ae8b
Support Vector of enum for Postgres ( #1210 )
...
* Support Vector of enum for Postgres
* Fix clippy
* Add tests for integer array
* Fix dependency
* Bump sea-query to 0.27.2
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-11-15 13:50:05 +08:00
Billy Chan
73e56e5531
Filter rows with IS IN
enum values expression ( #1183 )
...
* [demo] filter rows with enum value is in list
* Fix clippy
2022-11-15 13:20:47 +08:00