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
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
Chris Tsang
303a0f32d6
cargo fmt
2021-07-19 11:15:31 +08:00
Chris Tsang
1dceb07c70
pub use Value and Values
2021-07-19 11:15:31 +08:00
Chris Tsang
25432e68d0
from_raw_sql example
2021-07-18 00:02:29 +08:00
Chris Tsang
2dc8401c53
Paginator docs
2021-07-17 23:15:08 +08:00
Chris Tsang
9334d4ff5d
DbBackend alias
2021-07-17 22:03:41 +08:00
Chris Tsang
56763a8718
count() on Select
2021-07-17 21:18:20 +08:00
Chris Tsang
c018e45c3c
Refactor
2021-07-17 20:35:14 +08:00
Chris Tsang
c82b23795d
#48 : Select model from raw sql
2021-07-16 21:41:12 +08:00
Billy Chan
e83cc63e3a
Replacing Syntax
& *BuilderBackend
with DatabaseBackend
2021-07-16 00:28:03 +08:00
Billy Chan
d59ee1e298
Mock any database
2021-07-14 21:31:59 +08:00
Sam Samai
a838cf7c23
Naivedatetime for placed_at on order ( #40 )
...
* WIP use NativeDateTime for placed_at
* Use NaiveDatetime for placed_at
* Cargo fmt again
Co-authored-by: Chris Tsang <tyt2y7@gmail.com>
2021-07-11 22:17:28 +08:00
Chris Tsang
6ff5a32b7a
cargo fmt
2021-07-11 22:08:37 +08:00
Chris Tsang
3b67ff8c0c
Support Decimal on sqlite
2021-07-08 01:58:01 +08:00
Chris Tsang
40dd5e7da7
Fix build error from rust_decimal
2021-07-08 01:26:42 +08:00
Sam Samai
f05de487ff
Use Decimal for lineitem price
2021-07-07 21:46:21 +10:00
Chris Tsang
f5ac84f915
Rework DbErr
2021-06-30 23:56:26 +08:00
Chris Tsang
0298cfb6af
Rename to DbErr
2021-06-30 21:17:23 +08:00
Billy Chan
2a1173c174
Add & use OrmError ( #36 )
...
* Add & use OrmError
* Rename to SeaErr
2021-06-30 21:08:41 +08:00
Chris Tsang
688891f706
Use MockDatabase in doc test
2021-06-27 16:15:56 +08:00
Chris Tsang
a0db19758b
SelectTwoMany
2021-06-27 03:39:09 +08:00
Chris Tsang
df7bb5c195
left_join_and_select_also
2021-06-27 00:03:16 +08:00
Chris Tsang
394dfc07cc
Fix clippy warning
2021-06-26 23:02:38 +08:00
Billy Chan
a072b1f2f3
from_query_result_opt, FIXME: unit test will fail
2021-06-26 22:58:10 +08:00
Billy Chan
19c0b0c35d
Select to many
2021-06-26 22:55:30 +08:00
Chris Tsang
ad3fb45253
cargo fmt
2021-06-22 01:30:26 +08:00
Chris Tsang
ec290156c5
SQLx SQLite support
2021-06-20 23:04:25 +08:00
Chris Tsang
5002c62b40
Use DatabaseConnection in place of Database
2021-06-19 17:28:07 +08:00