284 Commits

Author SHA1 Message Date
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
Billy Chan
f75fcd8fdf Update unit test 2021-07-22 19:08:42 +08:00
Chris Tsang
78eeda0c00 Update example 2021-07-03 15:23:58 +08:00
Chris Tsang
e40455e771 Use SeaQL/strum 2021-07-01 21:07:23 +08:00
Billy Chan
7bf79ae5bf Re-export strum_macros 2021-07-01 19:12:52 +08:00
Billy Chan
dd8d8c3431
Codegen without find_* helper fn 2021-06-30 23:01:23 +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
5714bbe915 cargo fmt 2021-06-29 16:59:45 +08:00
Chris Tsang
a0d9b47b1f Rename left_join_and_select_* to find_*_related 2021-06-28 02:17:14 +08:00
Chris Tsang
5d16222108 Update example 2021-06-28 01:36:59 +08:00
Chris Tsang
9f93c7ed6f Use find_related in place of find_cake 2021-06-28 01:34:49 +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
0afd226dbe Update generated examples 2021-06-26 22:27:29 +08:00
Chris Tsang
c36b94592d Merge branch 'codegen-amendment' 2021-06-26 22:08:01 +08:00
Chris Tsang
1b2dc1ca43 Revert examples 2021-06-26 22:06:10 +08:00
Billy Chan
fa30519f99 sea-orm-cli read config from .env, update command, rename binary to sea-orm-cli 2021-06-26 21:46:10 +08:00
Billy Chan
9a25bb9c36
Use belongs_to, has_one and has_many 2021-06-22 23:42:10 +08:00
Billy Chan
83e4859776
codegen ColumnDef null() and unique() 2021-06-22 22:40:43 +08:00
Chris Tsang
72408eedfc Fix GitHub Action 2021-06-20 23:22:15 +08:00
Chris Tsang
91023d06c5 Codegen: update ColumnDef 2021-06-19 20:53:08 +08:00
Billy Chan
cab4b5a3f7
Codegen: Entity Generator (#23) 2021-06-19 19:47:59 +08:00
Chris Tsang
e5ff92dc1d DbConn alias 2021-06-19 17:33:14 +08:00
Chris Tsang
5002c62b40 Use DatabaseConnection in place of Database 2021-06-19 17:28:07 +08:00
Chris Tsang
5d84c88ccd Fix example 2021-06-19 17:00:36 +08:00
Chris Tsang
9058089dc8 Rename find_by to find_by_id 2021-06-16 17:39:22 +08:00
Chris Tsang
d8902ba979 Refactor example 2021-06-16 17:31:14 +08:00
Chris Tsang
6b7ea75393 Mock Database Connection 2021-06-13 22:20:50 +08:00
Chris Tsang
71d0cde771 PrimaryKey auto_increment 2021-06-12 19:18:14 +08:00
Chris Tsang
5069f92001 Delete and example 2021-06-11 23:10:56 +08:00
Chris Tsang
b65f2f9b90 Tweak 2021-06-07 20:04:56 +08:00
Chris Tsang
cf5b772cdd More fruits 2021-06-06 23:35:29 +08:00
Chris Tsang
b148c3906d Make Val looks like enum variants 2021-06-06 23:03:34 +08:00
Chris Tsang
b818138724 cargo fmt 2021-06-06 22:42:53 +08:00
Billy Chan
937af05003
Paginator API (#10)
* Paginator

* Remove unnecessary dependency, rename to num_pages

* Hotfix - nullable json value

* num_pages implemented on sub_query
2021-06-06 22:30:54 +08:00
Chris Tsang
5e0176ef1a Simplify example 2021-06-06 18:39:18 +08:00
Chris Tsang
989845f422 Tweaks 2021-06-06 18:13:53 +08:00
Chris Tsang
58349ee68b Example 2021-06-06 00:26:54 +08:00
Chris Tsang
744d62a310 Change one() to return Option<Model> 2021-06-05 23:44:11 +08:00
Chris Tsang
1a52e64572 More examples 2021-06-05 23:13:31 +08:00
Chris Tsang
890464f913 Save custom ActiveModel 2021-06-05 22:17:22 +08:00
Chris Tsang
cf0127d89f Save ActiveModel 2021-06-05 20:30:32 +08:00
Chris Tsang
f433872c0a Refactor example 2021-06-05 20:03:17 +08:00
Chris Tsang
c45a4bb376 impl QueryTrait for Select 2021-06-01 18:20:05 +08:00
Chris Tsang
97e6bb3433 Refactor JSON 2021-05-27 03:45:47 +08:00
Billy Chan
a7b96fee74
Serialize QueryResult 2021-05-26 23:31:49 +08:00
Billy Chan
7aaeef834c
Move to separate DeriveActiveModel, cargo fmt 2021-05-25 18:27:44 +08:00
Chris Tsang
6951ce26fd Example 2021-05-19 21:52:06 +08:00
Chris Tsang
8886269616 Many to many by reverse relation 2021-05-19 21:48:51 +08:00