2186 Commits

Author SHA1 Message Date
Billy Chan
4e1a0e4a7c
Allows offset & limit to take Option<u64> (#1410)
* Allows offset & limit to take `Option<u64>`

* Takes `Into<Option<u64>>` instead

* Reset limit and offset when None value is provided
2023-01-27 13:03:13 +08:00
Billy Chan
9fbfd06663
[CLI] a warm welcome message included :) (#1417)
* [CLI] a warm welcome message included :)

* Update layout

* update layout
2023-01-27 12:44:40 +08:00
Chris Tsang
27e2b5c5da Changelog 2023-01-26 18:43:51 +08:00
Chris Tsang
37704e1ed8
Merge pull request #1425 from SeaQL/record_not_updated
RecordNotFound -> RecordNotUpdated
2023-01-26 18:41:11 +08:00
Chris Tsang
4fef2b2043 Changelog 2023-01-26 17:51:51 +08:00
Billy Chan
1c43508b66
QueryTrait::maybe: a general purpose query customizer (#1415)
* Added `QueryTrait::maybe`

* Make the API better

* Docs

* Update src/query/traits.rs

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-01-26 17:48:25 +08:00
Chris Tsang
3b57b7ab8a Changelog Editorial 2023-01-25 16:03:01 +08:00
Chris Tsang
cd4cf45df2 Changelog 2023-01-25 15:47:28 +08:00
Chris Tsang
b3e4d1c1cf RecordNotFound -> RecordNotUpdated 2023-01-25 15:43:44 +08:00
Chris Tsang
6b757413f3 Changelog 2023-01-25 15:42:51 +08:00
Billy Chan
036edf9d70
Noop when update without providing any values (#1384)
* Noop when update without providing any values

* Add tests

* Update Cargo.toml

* Bump SeaQuery's version

* Fixup

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-01-26 17:12:50 +08:00
Chris Tsang
b84c2ffdcb Revert "Enable --universal-time by default"
This reverts commit 25bc625fc034a0e02b9e42864ddb74c8d51c6623.
2023-01-24 14:02:01 +08:00
Chris Tsang
25bc625fc0
Enable --universal-time by default 2023-01-24 14:00:47 +08:00
Billy Chan
9f6b5664eb
chnagelog 2023-01-19 15:47:51 +08:00
Diwakar Gupta
9c6e5c1fa2
Fixed sea-orm-cli exit status (#1402) 2023-01-19 15:40:29 +08:00
Chris Tsang
e6206c9143 Changelog 2023-01-19 05:36:38 +08:00
Daniel Samson
7d330e969c
Update COMMUNITY.md (#1405) 2023-01-19 15:32:56 +08:00
Chris Tsang
fce1c76c85 Fix jsonrpsee example 2023-01-19 14:15:54 +08:00
Chris Tsang
89e047c8b1 Changelog 2023-01-19 04:11:55 +08:00
Chris Tsang
0557e7b8df
Merge pull request #1403 from SeaQL/issues/1357
Don't call last_insert_id if not needed
2023-01-19 14:09:01 +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
Chris Tsang
a465d1ebac Refactor 2 2023-01-18 20:46:02 +08:00
Chris Tsang
07d5f781ca Refactor 2023-01-18 20:08:10 +08:00
Billy Chan
475bd63d13
changelog 2023-01-18 19:35:59 +08:00
Chris Tsang
f50dc1dd1c [issues] test case 2023-01-18 19:23:29 +08:00
Forest Anderson
bb39684f48
Add JsonBinary attribute (#1346)
* Add JsonBinary attribute to column

* Add Postgres test section, test binary json

* Added expanded entity format test

* Fixed unit test
2023-01-18 19:09:01 +08:00
Chris Tsang
e5b69ebb73 Don't call last_insert_id if not needed 2023-01-18 19:06:06 +08:00
Billy Chan
e24d1a3344
CHANGELOG 2023-01-18 18:47:00 +08:00
LeoniePhiline
f03424e7f7
fix(docs): Fix a small typo (#1391) 2023-01-18 18:45:35 +08:00
Billy Chan
ca205543a3
CHANGELOG 2023-01-12 17:28:39 +08:00
Billy Chan
d9102f0b64
CHANGELOG 2023-01-12 17:27:03 +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
Chris Tsang
a9ec15ea02 Changelog 2023-01-12 14:55:04 +08:00
Billy Chan
cb71e265df
Unchanged ActiveValue as Set (#1177)
* Unchanged ActiveValue as Set

* Renaming

* Rename

* Rename methods
2023-01-12 15:42:13 +08:00
Chris Tsang
c8338a931c Changelog 2023-01-12 14:10:10 +08:00
Chris Tsang
395203bd06 Docs 2023-01-12 14:09:26 +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
Chris Tsang
bb5dead0c8 Docs 2023-01-12 13:55:39 +08:00
Chris Tsang
0787035a42 Docs 2023-01-12 13:51:43 +08:00
Billy Chan
94bcc5ee7d
CHANGELOG 2023-01-11 19:15:54 +08:00
Billy Chan
a0d972633a
Implement LoaderTrait for slices (#1368) 2023-01-11 19:12:45 +08:00
Billy Chan
2a713b06cd
CHANGELOG 2023-01-11 15:28:55 +08:00
Billy Chan
0756adf647
find_by_id and delete_by_id take any Into primary key value (#1362) 2023-01-11 15:28:10 +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
f6e6e3d4e6
CHANGELOG 2023-01-11 14:23:43 +08:00
Billy Chan
0fcd291b47
CHANGELOG 2023-01-11 14:22:41 +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