2015 Commits

Author SHA1 Message Date
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
Chris Tsang
48a9ffec2a
Update CHANGELOG.md 2023-02-01 13:58:59 +08:00
Billy Chan
bd3d2e139c
Fix clippy warnings (#1438) 2023-01-31 18:28:17 +08:00
Chris Tsang
81c860e414 Trying to cleanup CI 2023-01-28 08:30:00 +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
Chris Tsang
7fcfb3a78f Changelog 2023-01-28 04:29:26 +08:00
Chris Tsang
624afc97d5 Changelog 2023-01-28 04:24:19 +08:00
Billy Chan
e2721e094a
Cont. added reexports for sqlx errors (#1434)
* added reexports for sqlx errors (#1181)

Co-authored-by: erhodes <erik@space-nav.com>

* Re-export SQLx error types

* Apply suggestions from code review

---------

Co-authored-by: e-rhodes <33500135+e-rhodes@users.noreply.github.com>
Co-authored-by: erhodes <erik@space-nav.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-01-31 13:03:57 +08:00
ippsav
67aa35e3c1
adding Dinoly to COMMUNITY.md (#1430) 2023-01-31 11:27:02 +08:00
Chris Tsang
cd43222280 Tweaks 2023-01-28 01:49:46 +08:00
Billy Chan
6d7bcb35e5
Atomic migration (#1379)
* Running atomic migration

* refactor

* clippy

* visibility

* Execute migration in transaction when it's a Postgres connection

* Testing rolling back on migrate up and down

* lifetimes elision

* typo

* abort migration before committing nested transaction
2023-01-30 22:55:46 +08:00
Chris Tsang
1b24d42bec
Update CHANGELOG.md 2023-01-30 21:50:36 +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
1e9eb0f46e
Imports cleanup 2023-01-30 12:41:12 +08:00
Billy Chan
bf67d827a5
Fix clippy 2023-01-30 11:34:40 +08:00
Billy Chan
51e6ad7170
Cast primary key column inside returning expression of insert statement (#1427) 2023-01-29 12:58:32 +08:00
Chris Tsang
5ffd8025f2 Update prelude 2023-01-29 11:34:28 +08:00
Chris Tsang
342d057833 Changelog 2023-01-27 11:20:31 +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
Chris Tsang
e0e5372efc
Update CHANGELOG.md 2023-01-29 10:58:36 +08:00
Chris Tsang
a9aa139af2
Enable --universal-time by default (#1420)
* Enable --universal-time by default

* Add `--local-time` flag

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-01-29 10:56:46 +08:00
Chris Tsang
59276eb897
Typo 2023-01-28 22:03:34 +08:00
Chris Tsang
8dea3904fd
Update CHANGELOG.md 2023-01-28 22:03:12 +08:00
Chris Tsang
9243a9d4e0
Update CHANGELOG.md 2023-01-28 21:46:34 +08:00
Chris Tsang
881a238660
Update CHANGELOG.md 2023-01-28 21:42:11 +08:00
Cemre Mengu
5ccae4e6d0
examples(axum): use tokio runtime (#1428) 2023-01-28 21:37:24 +08:00
Billy Chan
71dbffc725
Fix clippy (#1426)
* Fix clippy

* Fix clippy
2023-01-27 18:50:20 +08:00
Chris Tsang
5683c83189 Changelog & Docs 2023-01-26 23:36:16 +08:00
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