848 Commits

Author SHA1 Message Date
Billy Chan
ef1eb577b7
Update ActiveModelBehavior API 2021-09-30 10:31:58 +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
Chris Tsang
beb3ec62dc Add example usage of Condition
https://github.com/SeaQL/sea-query/issues/144
2021-09-29 13:54:36 +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
Billy Chan
a1a7a98a5c
Set SqlxSqlit pool max connection to 1 2021-09-28 18:21:00 +08:00
Chris Tsang
d37f0f3021 Readme 2021-09-28 14:38:55 +08:00
Billy Chan
89806ef522
Add test cases 2021-09-28 14:27: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
Chris Tsang
0cfa8784a3
Merge pull request #182 from SeaQL/find-linked-join-alias
`find_linked` join with table alias
2021-09-28 13:19:49 +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
baoyachi
8d69b034a0 'url_starts_with' replace with 'is_prefix_of' method 2021-09-27 16:45:25 +08:00
baoyachi
d78a067b2d 'url_starts_with' replace with 'is_prefix_of' method 2021-09-27 16:41:47 +08:00
baoyachi
ae9e1c48ce make url_starts_with access level 2021-09-27 12:34:53 +08:00
baoyachi
203a0d603a fix build error 2021-09-27 12:19:36 +08:00
Billy Chan
e558dc8584
Move impl Linked to entity_linked module 2021-09-27 12:13:57 +08:00
baoyachi
1cf5cec1c5 refactor code 2021-09-27 12:13:06 +08:00
baoyachi
2ccc8c527a cargo fmt 2021-09-27 11:49:20 +08:00
baoyachi
86f2d7e327 fix #200
* adapter postgrel url scheme
* refactor DbScheme
2021-09-27 11:45:54 +08:00
Billy Chan
a4f2e3c2a8
Test cases with more level of joins 2021-09-27 11:45:19 +08:00
Billy Chan
ee504e7d9f
find_linked join with table alias 2021-09-27 10:36:32 +08:00
Chris Tsang
1eb0e5cbb2 Fix doc tests 2021-09-26 22:36:20 +08:00
Chris Tsang
f22d93ce21 Unit test for DeriveEntityModel 2021-09-26 16:33:04 +08:00
Chris Tsang
bfa66915e3 Update Entity::update example 2021-09-21 11:10:54 +08:00
Billy Chan
f7b1c9b59a Edit README 2021-09-20 18:30:31 +08:00
Billy Chan
c66a2491ce Edit README 2021-09-20 18:30:31 +08:00
Billy Chan
a2ef73783c cargo fmt 2021-09-20 18:30:31 +08:00
Billy Chan
2176bad009 Indentation 2021-09-20 18:30:31 +08:00
Billy Chan
5c8caddf1f Update docs 2021-09-20 18:30:31 +08:00
Billy Chan
bb225b12ee Rocket example page number starts from one 2021-09-20 18:30:31 +08:00
Billy Chan
ce35317daf Refactor rocket example 2021-09-20 18:30:31 +08:00
Billy Chan
b22753bebf Test try_join! 2021-09-20 18:30:31 +08:00
Billy Chan
c9047d49e7 Update README & lib.rs 2021-09-20 18:30:31 +08:00
Chris Tsang
5d1488f12d
Merge pull request #175 from MuhannadAlrusayni/master
Impl `TryGetableMany` for diffrent types of generices
2021-09-19 01:54:00 +08:00
Billy Chan
3093cd2035 DatabaseConnection impl Sync, Send and Clone 2021-09-18 23:17:29 +08:00
Chris Tsang
558cf5904a Test suite: drop table if exists, instead of create table if not exists 2021-09-18 15:40:47 +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
89661ae3d0
Merge pull request #173 from SeaQL/pg-timestamp-tz
`TimestampWithTimeZone` Fixups
2021-09-17 23:38:47 +08:00
Chris Tsang
b1b5f95c1d Unit tests 2021-09-17 22:22:10 +08:00
Billy Chan
37d390e500
WIP 2021-09-17 19:04:18 +08:00
Chris Tsang
5509048550
Merge pull request #166 from SeaQL/model-ignore-attribute
Model ignore attributes
2021-09-17 17:20:42 +08:00
Billy Chan
a45c44cfc5 Add cake_expanded entity file for docs demo 2021-09-17 17:20:07 +08:00
Chris Tsang
a280a227d8 TODO 2021-09-17 16:04:07 +08:00
Billy Chan
6e7e2a59d3
cargo fmt 2021-09-17 15:16:30 +08:00