187 Commits

Author SHA1 Message Date
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
Billy Chan
ab7e7f3401
Merge branch 'master' into primary-key-type 2021-09-01 20:13:25 +08:00
Billy Chan
d14322ad75
WIP (workflow will fail) 2021-09-01 19:05:59 +08:00
Billy Chan
a49f880f4f
WIP: composite primary keys 2021-09-01 18:23:23 +08:00
Billy Chan
0e0ee0ede6
Add TryFromU64 & test Uuid as primary key 2021-09-01 16:53:54 +08:00
Billy Chan
333f199c1a
cargo fmt 2021-08-29 22:37:21 +08:00
Billy Chan
4e5a8d2dc5
WIP 2021-08-29 20:57:25 +08:00
Billy Chan
752cc4a44e
WIP 2021-08-29 19:39:01 +08:00
Billy Chan
3bada7fbc3
WIP 2021-08-29 12:05:55 +08:00
Billy Chan
ccfda51a5e
WIP 2021-08-28 23:48:13 +08:00
Marco Napetti
8f0f8a193b Fix clippy lint 2021-08-26 19:54:33 +02:00
Marco Napetti
344659f517 Fix test errors 2021-08-26 16:50:05 +02:00
Marco Napetti
4dadfd3f51 restore debug_print! for Mock variant 2021-08-26 16:05:12 +02:00
Marco Napetti
9b9918efc4 Remove impl TryGetable for Option<T> 2021-08-26 15:50:53 +02:00
Billy Chan
09c328bb0d Use smol async-runtime and require one of the supported runtime for integration tests 2021-08-21 22:56:48 +08:00
Billy Chan
2cfaa34a33 Test against all supported runtime 2021-08-21 22:56:48 +08:00
Billy Chan
1442fcf10f Assert against structs 2021-08-17 12:49:45 +08:00
Billy Chan
7bb5ff7797 Add into_model & into_json methods for SelectorRaw 2021-08-17 12:49:45 +08:00
Billy Chan
106d38d20b cargo fmt 2021-08-12 22:53:22 +08:00
Chris Tsang
ff8d921343 DateTimeWithTimeZone Postgres support 2021-08-10 18:16:47 +08:00
Chris Tsang
4731f1fd5e DateTimeWithTimeZone 2021-08-09 17:36:36 +08:00
Billy Chan
1eb490055e
Hotfix - try_get Option<T> directly 2021-08-06 18:23:37 +08:00
Billy Chan
d5447bca88
Hotfix - Postgres types 2021-08-06 12:26:56 +08:00
Billy Chan
22649f36a2
cargo fmt 2021-08-06 10:51:34 +08:00
Billy Chan
9c865cbb31
Try to fix count() 2021-08-06 10:48:37 +08:00
Sam Samai
6efb06d28b Merge branch 'master' into ss/test_suite
# Conflicts:
#	Cargo.toml
2021-07-25 20:41:42 +10:00
Billy Chan
1cdbcceddb
Testing different db on various async runtime (#53)
* Testing different db on various async runtime

* Test on various runtime

* No explicit cargo build step

* Cargo build with features

* Hotfix

* With actix_rt

* Only tests "runtime-async-std-native-tls" for now
2021-07-22 19:23:21 +08:00
Sam Samai
1d55df9c7b Merge branch 'master' into ss/test_suite
# Conflicts:
#	.github/workflows/rust.yml
#	Cargo.toml
2021-07-22 21:04:36 +10:00
Billy Chan
22516b8f68 Add Postgres db driver 2021-07-21 19:07:02 +08:00
Sam Samai
dfda079b77 Store baker contact details as Json and test 2021-07-21 15:36:53 +10:00
Sam Samai
c9833893c0 Column type can be Uuid 2021-07-20 16:28:38 +10:00