834 Commits

Author SHA1 Message Date
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
Chris Tsang
2e1371537a Merge FromQueryResultExt into FromQueryResult 2021-09-17 15:04:37 +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
Billy Chan
4e7bf8b836
Testing 2021-09-16 13:11:26 +08:00
Chris Tsang
8a4996300f Refactor Link 2021-09-15 12:17:21 +08:00
Chris Tsang
2ac8fe664e Docs 2021-09-12 22:17:17 +08:00
Chris Tsang
182c96e384 Fix clippy warning 2021-09-11 15:53:34 +08:00
Chris Tsang
f96c8ed49b cargo fmt 2021-09-10 22:02:35 +08:00
Chris Tsang
c0ee423f0a Refactor ActiveModel insert logic 2021-09-10 17:32:19 +08:00
Marco Napetti
c3084e425f
Initial lock support (#118)
* Initial lock support

* Move methods to QuerySelect trait

Co-authored-by: Marco Napetti <nappa85@therocktrading.com>
2021-09-10 16:35:57 +08:00
Billy Chan
889e9df923 Hotfix - ModelTrait::find_linked() filter with model's primary key 2021-09-10 16:34:04 +08:00
Chris Tsang
f56ac7b7f6 #129 Add set method to UpdateMany 2021-09-10 15:21:06 +08:00
Billy Chan
c4cdfa1add
Refactor 2021-09-10 13:15:45 +08:00
Chris Tsang
19ec35f1b5 Revert breaking changes 2021-09-10 12:58:28 +08:00