190 Commits

Author SHA1 Message Date
Billy Chan
623873678b
Handle "None of the database rows are affected" for Postgres 2021-11-08 15:12:47 +08:00
Billy Chan
50605c731b
FIXME: breaking behaviors 2021-11-05 22:39:25 +08:00
Billy Chan
a977572762
Update with returning for Postgres 2021-11-05 22:13:52 +08:00
Billy Chan
52ff9430e1
Docs 2021-11-05 18:25:20 +08:00
Billy Chan
c39a3b8cb2
Insert with returning for Postgres 2021-11-05 18:20:25 +08:00
Billy Chan
c5468eb92f
Use "marlon-sousa/sea-query" 2021-11-05 12:41:49 +08:00
Billy Chan
892c0fe57d
Support Vec<u8> primary key 2021-11-02 15:20:27 +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
Billy Chan
80d3ddc030
Use backed-up primary key as last insert id before getting it from db driver 2021-10-15 11:51:05 +08:00
Chris Tsang
069040be8b Tweak lifetime 2021-10-12 15:07:25 +08:00
Chris Tsang
3a6e55ced1 cargo fmt 2021-10-12 14:52:11 +08:00
Chris Tsang
7bc6477091 Merge branch 'master' into transaction-3 2021-10-12 14:24:35 +08:00
Chris Tsang
018f7dd19f Streaming for MockConnection 2021-10-09 21:14:24 +08:00
Billy Chan
2f90207d64
Remove PrimaryKeyValue trait 2021-10-08 18:10:19 +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
30b90076ae Merge pull request #211 from SeaQL/error-no-record-updated
Throw error if none of the db rows are affected
2021-10-07 16:59:42 +08:00
Billy Chan
8caed80fd7
Merge branch 'master' into last-insert-id 2021-10-06 22:38:43 +08:00
Chris Tsang
125ee40161
Merge pull request #211 from SeaQL/error-no-record-updated
Throw error if none of the db rows are affected
2021-10-05 22:01:10 +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
af93ea44ad Fix clippy warnings 2021-10-04 12:11:19 +08:00
Billy Chan
3955abb14c
Merge remote-tracking branch 'origin/master' into last-insert-id 2021-10-04 11:51:20 +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
Marco Napetti
02ebc9745c Transaction 3 2021-10-04 11:39:16 +08:00
Billy Chan
91fb97c12a
Update::many() will not raise DbErr::RecordNotFound error 2021-10-04 11:18:42 +08:00
Chris Tsang
a0be9239bd Doc 2021-10-01 23:41:12 +08:00
Chris Tsang
0c05b4c34e Improve example for Select::into_values 2021-10-01 13:24:11 +08:00
Chris Tsang
a6dfb417e2
Merge pull request #207 from SeaQL/naive-date
Support `chrono::NaiveDate` & `chrono::NaiveTime`
2021-09-30 22:52:31 +08:00
Chris Tsang
ca296bc941 Feature guard macros 2021-09-30 22:25:31 +08:00
Chris Tsang
fcd969e57c Use DeriveIden to replace ToString 2021-09-30 22:05:23 +08:00
Chris Tsang
5728ac4329
Merge pull request #208 from MuhannadAlrusayni/master
Support feteching T, (T, U), (T, U, P)..etc where they impl TryGetableMany
2021-09-30 21:51:25 +08:00
Chris Tsang
602690e9a7 Remove unneeded 2021-09-30 19:16:55 +08:00
Billy Chan
f4218dec56
Test mock connection 2021-09-30 12:47:01 +08:00
Billy Chan
3123a9d129
Fix git merge conflict 2021-09-30 11:40:27 +08:00
Billy Chan
b716c9ed57
cargo fmt 2021-09-30 11:19:26 +08:00
Billy Chan
02066cef6e
Support chrono::NaiveTime 2021-09-30 10:34:38 +08:00
Billy Chan
f7e96b3d72
Support chrono::NaiveDate 2021-09-30 10:34:38 +08:00
Billy Chan
966f7ff9a8
Fix clippy warning 2021-09-30 10:31:21 +08:00
Billy Chan
11781082ba
Throw error if none of the db rows are affected 2021-09-30 10:31:21 +08:00
Billy Chan
97b95bf612
cargo fmt 2021-09-28 18:23:42 +08:00
Billy Chan
ba66de16b6
Merge remote-tracking branch 'origin/master' into last-insert-id 2021-09-28 18:23:30 +08:00
Chris Tsang
85eadd38d2 Change mock connector behavior to mock Postgres regardless of feature flags 2021-09-28 13:57:44 +08:00
Muhannad Alrusayni
5379a23630 Add find_by_statement for T: TryGetableMany
Add `into_values` for `Select<T>`
2021-09-28 00:10:13 +03:00
Billy Chan
9bd537efe3
Fixup 2021-09-27 18:10:45 +08:00
Billy Chan
f79a417150
Remove ValueType: Default 2021-09-27 18:01:38 +08:00
Muhannad Alrusayni
7742eb2cec Impl TryGetableMany for (T) 2021-09-27 12:47:14 +03:00