167 Commits

Author SHA1 Message Date
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
Billy Chan
bb225b12ee Rocket example page number starts from one 2021-09-20 18:30:31 +08:00
Muhannad Alrusayni
15db5d2933 clean up some comments 2021-09-17 22:45:05 +03:00
Muhannad Alrusayni
3bf26a758a impl TryFromU64 for tuples types 2021-09-17 22:41:49 +03:00
Muhannad Alrusayni
56dd19ef75 Impl TryGetableMany for diffrent types of generices 2021-09-17 21:59:38 +03:00
Chris Tsang
a280a227d8 TODO 2021-09-17 16:04:07 +08:00
Muhannad Alrusayni
e71a74b0c1 Improve working with raw SQL
- Add `find_by_statement` to `T: FromQueryResult`
- Add `SelectorRaw::from_statement` constructor
2021-09-16 18:06:02 +03:00
Muhannad Alrusayni
9107c9010a add into_model() for Statement 2021-09-16 11:47:31 +03:00
Chris Tsang
182c96e384 Fix clippy warning 2021-09-11 15:53:34 +08:00
Chris Tsang
76378d6c84 #133 Implement TryGetable for Vec<u8> 2021-09-07 18:27:13 +08:00
Sam Samai
71926cfd4b Merge branch 'master' into ss/rocket-example
# Conflicts:
#	Cargo.toml
2021-09-03 22:33:16 +10:00
Sam Samai
3f41f92690 Order posts by id 2021-09-03 22:20:46 +10:00
Billy Chan
5060890888
cargo +nightly fmt 2021-09-03 14:56:58 +08:00
Billy Chan
b32fe669fa
Merge pull request #123 from SeaQL/logging
Logging
2021-09-03 14:49:52 +08:00
Chris Tsang
d212b62ce5 Fixup 2021-09-03 14:34:20 +08:00
Billy Chan
7f38621c3c
Set clippy deny 2021-09-03 14:26:57 +08:00
Chris Tsang
c8e2232875 Reduce panic 2021-09-03 14:17:07 +08:00
Chris Tsang
76596da46a
Merge pull request #117 from SeaQL/primary-key-type
`InsertResult` to return the primary key's type
2021-09-03 14:15:11 +08:00
Billy Chan
8cde6e46e4
Merge branch 'master' into linked-api 2021-09-03 12:14:39 +08:00
Billy Chan
541b94f15d
Update query helper column_as 2021-09-03 11:23:29 +08:00
Billy Chan
0db9021da0
Update tests 2021-09-02 16:30:57 +08:00
Billy Chan
e72d8a9e04
Use TryGetableMany 2021-09-02 11:26:40 +08:00
Billy Chan
d664985ea9
WIP 2021-09-01 23:24:43 +08:00
Billy Chan
23f2a3d711
Hotfix - git merge conflict 2021-09-01 22:04:43 +08:00