Chris Tsang
c2b8c44118
Merge pull request #2185 from SeaQL/pk-arity-trait
...
`PrimaryKeyArity` trait
2024-05-09 17:50:34 +01:00
Billy Chan
33f4659db7
clippy
2024-05-03 13:46:38 +08:00
Chris Tsang
fe3e92bfdf
Make use of ARITY
2024-04-03 20:51:39 +01:00
Chris Tsang
af52e86a9c
Newline
2023-08-18 13:47:27 +01:00
Chris Tsang
cca65b7875
Slight tweaks
2023-08-18 13:14:52 +01:00
Chris Tsang
08c3441a9c
Add more find_also_related test cases
...
From darkmmon/sea-orm/commit/ce5f6991391fdbb0b8deb72ddd404944bb05cf98
2023-08-18 13:10:31 +01:00
Ivan Yiu
d50312c081
Test cases improvement ( #1811 )
...
* adds find_with_linked test
* WIP(related test)
* mock related test done
* complete relation test
* loader update
* find_with/also_related missing test case for empty from other side
* comments fixup
* revert loader test
* related select test done
* find with/also linked test cases
* removed due to it being functionally same as the new one
* fmt, remove excess import
* improved model generation
* issue related test case #1790
* added loader test cases and slight improvement to find_related/linked
* miscellaneous changes
* added empty insert, merge load_one test case
* completed loader many to many test case, fmt
* removed empty_insert test case for now
* commented insert_test
* added Cargo.toml for issue 1790's folder
* buffed salvo version for ci(0.49 yanked)
* revert version for salvo example
2023-08-18 20:02:17 +08:00
Chris Tsang
ef861294e2
Fix clippy
2023-08-04 20:26:12 +01:00
Chris Tsang
f2dfbab3a0
Fix find_with_related #1800
2023-08-04 20:22:07 +01:00
Chris Tsang
6dc19d97bd
Support tuple primary key (as the old impl does)
...
Also, r_model is optional (same as the old impl)
2023-07-07 23:16:10 +08:00
darkmmon
50a7048deb
Adding find_with_linked ( #1728 )
2023-07-07 22:19:45 +08:00
Chris Tsang
9e5900e25b
cargo fmt
2023-04-26 21:41:45 +08:00
Chris Tsang
2746271190
Changelog
2023-04-26 21:32:16 +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
91c4930391
Cleanup panic and unwrap ( #1231 )
...
* Add clippy linter checks
* Mock
* InnerConnection
* panic -> Err
* panic -> Err
* More panic -> Err
* Replace unwrap
* Fix clippy
* add clippy linters
* Refactor
* Dump DbErr::Mock
* Revert if...else rewrite
* Remove except
* DbErr helper functions
* Fix clippy
* Negative SQLite last_insert_rowid throw unreachable
* Update panics docs
* Fixup
* Fixup
* Fixup
* Fixup
* Revert adding `ExecResultHolder::Disconnected`
* More fixup
* Fix
* Revert adding `QueryResultRow::Disconnected`
* Fix
* Refactoring
* Fix
* Refactoring
* More refactoring
* More refactoring
* Fix
* Revert `InnerConnection::Disconnected`
* Revert breaking changes
* Fix
* Fix
* Fix
* Refactor `.take().expect()`
* Revert changing `if ... else` to `match` block
* Revert changing return type of `MockDatabaseConnection` transaction method
* Borrow sqlcipher_key
* Fetching unsupported type from query result will thrown `DbErr::Type(...)` error
* Revert adding `DatabaseConnection::try_into_transaction_log()` method
* Refactoring
* Refactoring
2023-02-02 00:02:53 +08:00
LeoniePhiline
f03424e7f7
fix(docs): Fix a small typo ( #1391 )
2023-01-18 18:45:35 +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
3cd834d40c
docs
2022-12-20 15:43:03 +08:00
Billy Chan
70c4a3a23e
Select into tuple
2022-12-15 21:24:10 +08:00
Marco Napetti
9d25ee9ac1
use GAT to elide StreamTrait lifetime ( #1161 )
2022-11-06 12:55:21 +08:00
Billy Chan
1a8d22d918
cargo fmt
2022-07-11 17:26:57 +08:00
Chris Tsang
a24df5a91e
Tweaks & fmt
2022-07-11 00:03:40 +08:00
Billy Chan
6e47d488d4
Drop SelectTwoMany::one
method ( #813 )
2022-07-10 23:41:10 +08:00
Allen
bdd9133aa6
fix lints and warnings
...
also clean up impl_into_active_value macro
2022-04-09 16:52:47 -07:00
shinbunbun
7a86ac0239
Implement PaginatorTrait for SelectorRaw ( #617 )
...
* Implement PaginatorTrait for SelectorRaw
* Implement raw test
2022-03-21 14:37:08 +08:00
Billy Chan
f3a7a1398a
Merge branch 'master' into pulls/471
2022-03-07 15:52:12 +08:00
Billy Chan
8eb095385d
Migration ( #335 )
...
* Refactor `ConnectionTrait`
* Refactoring
* Build index & foreign key statements
* Fix imports
* Fixup
* Rocket example with migration
* async-std compatible with the tokio 1.0 runtime
* Use reexported dependency
* Compile without selecting any db backend
* Updating sea-orm-cli dep
* sea-orm-cli migrate commands
* cargo fmt
* Test [cli]
* Refactoring
* Clap app name should be "sea-orm-cli"
* Correctly capture MIGRATION_DIR
* Rename README
* Add `sea-orm-cli migrate init` command
* Update README
* Try restructured sea-query dependency (SeaQL/sea-schema#41 )
* Set `DATABASE_URL` environment variable
2022-02-05 20:34:54 +08:00
Sebastian Pütz
f012ccaec3
Add Send bound to streams.
2022-01-19 20:46:10 +01:00
Chris Tsang
47cbf50c3c
Merge branch 'master' into pulls/361
2021-12-25 17:41:29 +08:00
Billy Chan
006d35313b
Fix clippy warnings
2021-12-17 11:39:53 +08:00
Billy Chan
af1ffdad83
Rename sea-strum
lib back to strum
2021-12-07 17:21:03 +08:00
Billy Chan
7298fdeda9
Rewrite doctests
2021-11-16 17:35:49 +08:00
Billy Chan
4c147a2d24
Rewrite doctests
2021-11-16 16:27:54 +08:00
Chris Tsang
d66538d7bc
Edit docs
2021-11-14 20:54:15 +08:00
Chris Tsang
aaf6c2555d
Refactor and add stream()
to SelectorRaw
2021-11-14 20:49:04 +08:00
Chris Tsang
5f2fa55253
Edit docs
2021-11-14 16:58:52 +08:00
Billy Chan
1905f62430
cargo fmt
2021-11-10 14:58:06 +08:00
jasper
23498892b0
Add PaginatorTrait and CountTrait
2021-11-09 21:33:55 +08:00
Chris Tsang
03d90d8630
Docs
2021-11-09 16:21:12 +08:00
Charles Chege
817e9bdd23
Documetation for the executor module
2021-10-29 10:38:55 +03:00
Chris Tsang
c0761a949b
cargo fmt
2021-10-19 18:50:45 +08:00
Chris Tsang
55dbdb7626
#249 Build with mock only
2021-10-15 23:04:14 +08:00
Chris Tsang
018f7dd19f
Streaming for MockConnection
2021-10-09 21:14:24 +08:00
Chris Tsang
a2ec6cd351
Rename MockTransaction -> Transaction
2021-10-07 18:00:11 +08:00
Chris Tsang
51b30ee837
Merge branch 'master' into transaction-3
2021-10-07 17:21:59 +08:00
Chris Tsang
df4df87d09
Rename Transaction -> MockTransaction
2021-10-04 21:37:12 +08:00
Chris Tsang
4fd5d56dbf
cargo +nightly fmt
2021-10-04 13:13:36 +08:00
Chris Tsang
e7b822c65d
cargo fmt
2021-10-04 11:44:02 +08:00
Chris Tsang
01a5c1c6dd
Fix build errors
2021-10-04 11:43:21 +08:00