769 Commits

Author SHA1 Message Date
Charles Chege
91b9e542af Documetation for the database modeule 2021-10-29 10:37:10 +03:00
Chris Tsang
8338c23341 Do not override max_connections for SQLite 2021-10-29 14:24:54 +08:00
Charles Chege
642994a194 Documentation for the stream module 2021-10-28 15:49:28 +03:00
Billy Chan
e21af53374
Fix clippy warnings 2021-10-27 15:23:21 +08:00
Billy Chan
fe64d53b45
Merge remote-tracking branch 'origin/master' into active-enum 2021-10-27 13:24:35 +08:00
Billy Chan
55de1968bb
Add create_enum_from_entity 2021-10-27 12:37:35 +08:00
Billy Chan
e04495b94d
Refactoring 2021-10-27 11:28:33 +08:00
Billy Chan
fac528a369
Refactoring 2021-10-27 10:58:38 +08:00
Billy Chan
ded28be2c0
Refactoring 2021-10-26 18:58:06 +08:00
Billy Chan
db22e70c63
Refactoring 2021-10-26 17:51:36 +08:00
Billy Chan
2ee376ddd1
Try EnumValue 2021-10-26 16:22:24 +08:00
Billy Chan
6059cdd9ad
Remove unused EnumIter 2021-10-25 17:03:10 +08:00
Billy Chan
f20c64988d
Tests all DB 2021-10-25 16:52:02 +08:00
Billy Chan
8858d64dd0
create_table_from_entity with DB backend 2021-10-25 15:48:01 +08:00
Chris Tsang
5daa9abd38 #267 Added is_null and is_not_null 2021-10-23 15:41:33 +08:00
Forest Anderson
44da1cab0b Rearranged files, added fmt 2021-10-22 11:24:41 +08:00
Billy Chan
b65d441dea
Fix clippy warnings 2021-10-21 16:26:42 +08:00
Billy Chan
1ee2dab3b7
Fixup 2021-10-21 15:53:46 +08:00
Billy Chan
20c66b2f05
Refactoring 2021-10-21 15:50:18 +08:00
Billy Chan
80c72004d1
Try Postgres enum 2021-10-21 15:43:50 +08:00
Billy Chan
734608471c
WIP 2021-10-20 18:54:08 +08:00
Billy Chan
d525c710ce
Merge remote-tracking branch 'origin/master' into active-enum 2021-10-20 18:43:39 +08:00
Billy Chan
f1ef7d9c47
Add DbErr::Type 2021-10-20 16:41:01 +08:00
Billy Chan
388bf2cfca
Fixup 2021-10-20 15:17:11 +08:00
Billy Chan
eed8b7c51e
Add docs 2021-10-20 15:06:23 +08:00
Billy Chan
ceba3ef7a0
Add docs 2021-10-20 13:16:22 +08:00
Billy Chan
bd56485180
lib.rs SEO 2021-10-20 12:28:51 +08:00
Billy Chan
5b0720065f
More tests 2021-10-20 12:18:08 +08:00
Billy Chan
e177a338c4
Minimal trait bounds 2021-10-20 12:17:57 +08:00
Billy Chan
8627c8d961
Draft ActiveEnum 2021-10-19 19:08:02 +08:00
Chris Tsang
c0761a949b cargo fmt 2021-10-19 18:50:45 +08:00
Forest Anderson
bcc5b5066a Changed manual url parsing to use Url crate 2021-10-16 23:19:48 -04:00
Chris Tsang
10b101b142 Test case for DeriveIntoActiveModel 2021-10-16 17:46:08 +08:00
Chris Tsang
09324db1b0 Stream example 2021-10-16 01:02:25 +08:00
Chris Tsang
55a4f32d5e
Merge pull request #248 from SeaQL/transaction-am-behavior-tests
Transaction & active model behavior tests
2021-10-15 23:43:47 +08:00
Chris Tsang
8ce392ba8c #249 Build with mock + macros 2021-10-15 23:08:55 +08:00
Chris Tsang
55dbdb7626 #249 Build with mock only 2021-10-15 23:04:14 +08:00
Billy Chan
01eff84ce8 Join with table alias 2021-10-15 22:28:39 +08:00
Billy Chan
aa5ccb9216
Hotfix - ActiveModel::insert() trigger ActiveModelBehavior::after_save() 2021-10-15 17:43:39 +08:00
Billy Chan
80d3ddc030
Use backed-up primary key as last insert id before getting it from db driver 2021-10-15 11:51:05 +08:00
Chris Tsang
249f87387e Readme 2021-10-14 23:22:36 +08:00
Chris Tsang
75882b34cb Transaction with BEGIN 2021-10-14 18:33:13 +08:00
Chris Tsang
760c439c83 Unit test DeriveIntoActiveModel 2021-10-13 18:58:00 +08:00
Chris Tsang
d5e95b0f8f
Merge pull request #240 from Acidic9/feat/into-active-model-derive
Add derive `DeriveIntoActiveModel` and `IntoActiveValue` trait
2021-10-13 18:30:09 +08:00
Chris Tsang
6defdaf616
Merge pull request #210 from SeaQL/active-model-behavior
Update `ActiveModelBehavior` API
2021-10-13 17:47:13 +08:00
Chris Tsang
1d6e6066cd Allow disable SQLx logging 2021-10-13 16:41:51 +08:00
Chris Tsang
bf595ca926 Use Figment config from Rocket 2021-10-13 15:54:49 +08:00
Chris Tsang
c673017b97 ConnectOptions 2021-10-13 02:40:33 +08:00
Billy Chan
6ecc3138c3
Use new ActiveValue::into_value() 2021-10-12 21:14:40 +08:00
Billy Chan
75e625fee9
ActiveModelBehavior without db connection 2021-10-12 20:42:42 +08:00